Skip to main content

nm2hz

Function nm2hz 

Source
pub fn nm2hz(wavelength_nm: f64) -> f64
Expand description

The frequency $f = c / \lambda$ (Hz) of the vacuum wavelength wavelength_nm (nm), $c$ the SPEED_OF_LIGHT.

§Examples

assert!((comnum_math::nm2hz(1550.0) - 193.414e12).abs() < 1e9);