Skip to main content

frequency_from_photon_energy

Function frequency_from_photon_energy 

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

Computes frequency from photon energy using f = E / h.

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