Skip to main content

mass_from_rest_energy

Function mass_from_rest_energy 

Source
pub fn mass_from_rest_energy(rest_energy: f64) -> Option<f64>
Expand description

Computes rest mass m = E0 / c² from rest energy in joules.

Returns None when rest_energy is negative or not finite, or when the computed mass is not finite.