Module pygravity.math
Common math functions for pygravity
Constants
GRAVITATIONAL_CONSTANT
Functions
acceleration_due_to_gravity(attractor_mass: float, distance: float) -> float
Functions
def acceleration_due_to_gravity(attractor_mass: float, distance: float) ‑> float
-
Calculate the speed that a body
distance
meters from a body with a mass ofattractor_mass
would fall toward that body.