pub fn total_energy(mass: f64, speed: f64) -> Option<f64>Expand description
Computes total relativistic energy E = γmc² in joules.
Returns None when mass is negative or not finite, when speed is invalid, or when the
computed energy is not finite.