Function photon_energy_from_frequency
pub fn photon_energy_from_frequency(frequency: f64) -> Option<f64>Expand description
Computes photon energy from frequency using E = h * f.
Returns None when frequency is negative, when the input is not finite, or when the
computed result is not finite.
ยงExamples
use use_quantum::{PLANCK_CONSTANT, photon_energy_from_frequency};
let energy = photon_energy_from_frequency(1.0).ok_or("expected valid frequency")?;
assert_eq!(energy, PLANCK_CONSTANT);