lorentz_factor

Function lorentz_factor 

Source
pub fn lorentz_factor(v: KmPerSec) -> f64
Expand description

Compute the Lorentz factor γ = 1 / √(1 - β²), where β = v/c.

Returns γ ≥ 1. For v = 0, returns exactly 1.0. Panics if v ≥ c (speed of light).