import numpy as np import matplotlib.pyplot as plt h=np.arange(0,100000,100) g=6.67e-11*5.972e24/(6378000+h)**2 plt.plot(h,(g-g[0])*100/g[0]) plt.grid() plt.show()