Skip to main content

wavelength_from_photon_energy

Function wavelength_from_photon_energy 

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

Computes wavelength from photon energy using lambda = h * c / E.

Returns None when energy is not positive and finite, or when the computed result is not finite.