Skip to main content

photon_momentum_from_energy

Function photon_momentum_from_energy 

pub fn photon_momentum_from_energy(energy: f64) -> Option<f64>
Expand description

Computes photon momentum from energy using p = E / c.

Returns None when energy is negative, when the input is not finite, or when the computed result is not finite.