<P> This expression can be readily used for programming or inclusion in a spreadsheet . Collecting terms, simplifying and neglecting small terms (h <<r), however yields the good approximation: </P> <Dl> <Dd> Δ g h ≈ − G m E a r t h r E a r t h 2 ⋅ 2 h r E a r t h (\ displaystyle \ Delta g_ (h) \ approx - \, (\ dfrac (G \, m_ (\ mathrm (Earth))) (r_ (\ mathrm (Earth)) ^ (2))) \ cdot (\ dfrac (2 \, h) (r_ (\ mathrm (Earth))))) </Dd> </Dl> <Dd> Δ g h ≈ − G m E a r t h r E a r t h 2 ⋅ 2 h r E a r t h (\ displaystyle \ Delta g_ (h) \ approx - \, (\ dfrac (G \, m_ (\ mathrm (Earth))) (r_ (\ mathrm (Earth)) ^ (2))) \ cdot (\ dfrac (2 \, h) (r_ (\ mathrm (Earth))))) </Dd> <P> Using the numerical values above and for a height h in metres: </P>

Variation of acceleration due to gravity with altitude