Crate physical_constants [−] [src]
Provides access to the CODATA recommended values for physical constants.
The units are the appropriate prefix-less SI units unless otherwise noted in the name of the quantity. A listing of all quantities and their units are found in the CODATA 2014 table
Examples
use physical_constants; let epsilon_0 = physical_constants::ELECTRIC_CONSTANT; let mu_0 = physical_constants::MAG_CONSTANT; println!("speed of massless particles: {} m/s", 1f64/(epsilon_0*mu_0).sqrt()); println!("impedance of free space: {} Ω", (mu_0/epsilon_0).sqrt());