Skip to main content

escape_speed

Function escape_speed 

Source
pub fn escape_speed(mu: f64, distance: f64) -> Option<f64>
Expand description

Computes escape speed from a distance around a body with gravitational parameter.

Formula: v_escape = sqrt(2μ / r)

Returns None when mu is negative, when distance is less than or equal to zero, or when the input or result is not finite.