pub fn dilated_time(proper_time: f64, speed: f64) -> Option<f64>Expand description
Computes dilated coordinate time t = γτ from proper time τ.
Returns None when proper_time is negative or not finite, when speed is invalid, or when
the computed time is not finite.
§Examples
use use_relativity::{SPEED_OF_LIGHT, dilated_time};
assert!((dilated_time(10.0, SPEED_OF_LIGHT * 0.6).unwrap() - 12.5).abs() < 1.0e-12);