Created
December 8, 2023 20:36
-
-
Save Moderrek/88be4dd20cc4e1a403bba84c34ffe937 to your computer and use it in GitHub Desktop.
Earth mass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scipy.constants import G | |
# F = G * (M1 * M2 / r2) | |
M1 = 1 | |
F = 9.81 | |
r = 6_371_000 | |
# M2 = F * r2 / G / M1 | |
M2 = F * pow(r, 2) / G / M1 | |
print(f"Earth mass: {M2}kg") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment