use crate::GRAVITATION_CONSTANT;
/// Calculates the field potential
///
/// # Examples
///
/// ```
/// let answer = astromech::calc_field_potential(4.0, 3.0);
///
/// assert_eq!(8.899066666666666e-11, answer);
/// ```
pub fn calc_field_potential(mass: f64, distance: f64) -> f64 {
(GRAVITATION_CONSTANT * mass) / distance
}