pub fn weight(mass: f64, gravitational_acceleration: f64) -> Option<f64>Expand description
Computes weight from mass and gravitational acceleration.
Formula: W = m * g
Returns None when mass is negative, when gravitational_acceleration is not finite, or
when the computed result is not finite.