Expand description

Provides access to the CODATA recommended 2018 values for physical constants.

Examples

use physical_constants;

let epsilon_0 = physical_constants::VACUUM_ELECTRIC_PERMITTIVITY;
let mu_0 = physical_constants::VACUUM_MAG_PERMEABILITY;

println!("speed of massless particles: {} m/s", 1f64/(epsilon_0*mu_0).sqrt());
println!("impedance of free space: {} Ω", (mu_0/epsilon_0).sqrt());

Constants

alpha particle-electron mass ratio (dimensionless)
alpha particle mass (unit: kg)
alpha particle mass energy equivalent (unit: J)
alpha particle mass energy equivalent in MeV (unit: MeV)
alpha particle mass in u (unit: u)
alpha particle molar mass (unit: kg⋅mol-1)
alpha particle-proton mass ratio (dimensionless)
alpha particle relative atomic mass (dimensionless)
Angstrom star (unit: m)
atomic mass constant (unit: kg)
atomic mass constant energy equivalent (unit: J)
atomic mass constant energy equivalent in MeV (unit: MeV)
atomic mass unit-electron volt relationship (unit: eV)
atomic mass unit-hartree relationship (unit: E_h)
atomic mass unit-hertz relationship (unit: Hz)
atomic mass unit-inverse meter relationship (unit: m-1)
atomic mass unit-joule relationship (unit: J)
atomic mass unit-kelvin relationship (unit: K)
atomic mass unit-kilogram relationship (unit: kg)
atomic unit of 1st hyperpolarizability (unit: C3⋅m3⋅J-2)
atomic unit of 2nd hyperpolarizability (unit: C4⋅m4⋅J-3)
atomic unit of action (unit: J⋅s)
atomic unit of charge (unit: C)
atomic unit of charge density (unit: C⋅m-3)
atomic unit of current (unit: A)
atomic unit of electric dipole mom. (unit: C⋅m)
atomic unit of electric field (unit: V⋅m-1)
atomic unit of electric field gradient (unit: V⋅m-2)
atomic unit of electric polarizability (unit: C2⋅m2⋅J-1)
atomic unit of electric potential (unit: V)
atomic unit of electric quadrupole mom. (unit: C⋅m2)
atomic unit of energy (unit: J)
atomic unit of force (unit: N)
atomic unit of length (unit: m)
atomic unit of magnetizability (unit: J⋅T-2)
atomic unit of mag. dipole mom. (unit: J⋅T-1)
atomic unit of mag. flux density (unit: T)
atomic unit of mass (unit: kg)
atomic unit of momentum (unit: kg⋅m⋅s-1)
atomic unit of permittivity (unit: F⋅m-1)
atomic unit of time (unit: s)
atomic unit of velocity (unit: m⋅s-1)
Avogadro constant (unit: mol-1)
Bohr magneton (unit: J⋅T-1)
Bohr magneton in eV/T (unit: eV⋅T-1)
Bohr magneton in Hz/T (unit: Hz⋅T-1)
Bohr magneton in inverse meter per tesla (unit: m-1⋅T-1)
Bohr magneton in K/T (unit: K⋅T-1)
Bohr radius (unit: m)
Boltzmann constant (unit: J⋅K-1)
Boltzmann constant in eV/K (unit: eV⋅K-1)
Boltzmann constant in Hz/K (unit: Hz⋅K-1)
Boltzmann constant in inverse meter per kelvin (unit: m-1⋅K-1)
characteristic impedance of vacuum (unit: ohm)
classical electron radius (unit: m)
Compton wavelength (unit: m)
conductance quantum (unit: S)
conventional value of ampere-90 (unit: A)
conventional value of coulomb-90 (unit: C)
conventional value of farad-90 (unit: F)
conventional value of henry-90 (unit: H)
conventional value of Josephson constant (unit: Hz⋅V-1)
conventional value of ohm-90 (unit: ohm)
conventional value of volt-90 (unit: V)
conventional value of von Klitzing constant (unit: ohm)
conventional value of watt-90 (unit: W)
Copper x unit (unit: m)
deuteron-electron mag. mom. ratio (dimensionless)
deuteron-electron mass ratio (dimensionless)
deuteron g factor (dimensionless)
deuteron mag. mom. (unit: J⋅T-1)
deuteron mag. mom. to Bohr magneton ratio (dimensionless)
deuteron mag. mom. to nuclear magneton ratio (dimensionless)
deuteron mass (unit: kg)
deuteron mass energy equivalent (unit: J)
deuteron mass energy equivalent in MeV (unit: MeV)
deuteron mass in u (unit: u)
deuteron molar mass (unit: kg⋅mol-1)
deuteron-neutron mag. mom. ratio (dimensionless)
deuteron-proton mag. mom. ratio (dimensionless)
deuteron-proton mass ratio (dimensionless)
deuteron relative atomic mass (dimensionless)
deuteron rms charge radius (unit: m)
electron charge to mass quotient (unit: C⋅kg-1)
electron-deuteron mag. mom. ratio (dimensionless)
electron-deuteron mass ratio (dimensionless)
electron gyromag. ratio (unit: s-1⋅T-1)
electron gyromag. ratio in MHz/T (unit: MHz⋅T-1)
electron g factor (dimensionless)
electron-helion mass ratio (dimensionless)
electron mag. mom. (unit: J⋅T-1)
electron mag. mom. anomaly (dimensionless)
electron mag. mom. to Bohr magneton ratio (dimensionless)
electron mag. mom. to nuclear magneton ratio (dimensionless)
electron mass (unit: kg)
electron mass energy equivalent (unit: J)
electron mass energy equivalent in MeV (unit: MeV)
electron mass in u (unit: u)
electron molar mass (unit: kg⋅mol-1)
electron-muon mag. mom. ratio (dimensionless)
electron-muon mass ratio (dimensionless)
electron-neutron mag. mom. ratio (dimensionless)
electron-neutron mass ratio (dimensionless)
electron-proton mag. mom. ratio (dimensionless)
electron-proton mass ratio (dimensionless)
electron relative atomic mass (dimensionless)
electron-tau mass ratio (dimensionless)
electron to alpha particle mass ratio (dimensionless)
electron to shielded helion mag. mom. ratio (dimensionless)
electron to shielded proton mag. mom. ratio (dimensionless)
electron-triton mass ratio (dimensionless)
electron volt (unit: J)
electron volt-atomic mass unit relationship (unit: u)
electron volt-hartree relationship (unit: E_h)
electron volt-hertz relationship (unit: Hz)
electron volt-inverse meter relationship (unit: m-1)
electron volt-joule relationship (unit: J)
electron volt-kelvin relationship (unit: K)
electron volt-kilogram relationship (unit: kg)
elementary charge (unit: C)
elementary charge over h-bar (unit: A⋅J-1)
Faraday constant (unit: C⋅mol-1)
Fermi coupling constant (unit: GeV-2)
fine-structure constant (dimensionless)
first radiation constant (unit: W⋅m2)
first radiation constant for spectral radiance (unit: W⋅m2⋅sr-1)
hartree-atomic mass unit relationship (unit: u)
hartree-electron volt relationship (unit: eV)
Hartree energy (unit: J)
Hartree energy in eV (unit: eV)
hartree-hertz relationship (unit: Hz)
hartree-inverse meter relationship (unit: m-1)
hartree-joule relationship (unit: J)
hartree-kelvin relationship (unit: K)
hartree-kilogram relationship (unit: kg)
helion-electron mass ratio (dimensionless)
helion g factor (dimensionless)
helion mag. mom. (unit: J⋅T-1)
helion mag. mom. to Bohr magneton ratio (dimensionless)
helion mag. mom. to nuclear magneton ratio (dimensionless)
helion mass (unit: kg)
helion mass energy equivalent (unit: J)
helion mass energy equivalent in MeV (unit: MeV)
helion mass in u (unit: u)
helion molar mass (unit: kg⋅mol-1)
helion-proton mass ratio (dimensionless)
helion relative atomic mass (dimensionless)
helion shielding shift (dimensionless)
hertz-atomic mass unit relationship (unit: u)
hertz-electron volt relationship (unit: eV)
hertz-hartree relationship (unit: E_h)
hertz-inverse meter relationship (unit: m-1)
hertz-joule relationship (unit: J)
hertz-kelvin relationship (unit: K)
hertz-kilogram relationship (unit: kg)
hyperfine transition frequency of Cs-133 (unit: Hz)
inverse fine-structure constant (dimensionless)
inverse meter-atomic mass unit relationship (unit: u)
inverse meter-electron volt relationship (unit: eV)
inverse meter-hartree relationship (unit: E_h)
inverse meter-hertz relationship (unit: Hz)
inverse meter-joule relationship (unit: J)
inverse meter-kelvin relationship (unit: K)
inverse meter-kilogram relationship (unit: kg)
inverse of conductance quantum (unit: ohm)
Josephson constant (unit: Hz⋅V-1)
joule-atomic mass unit relationship (unit: u)
joule-electron volt relationship (unit: eV)
joule-hartree relationship (unit: E_h)
joule-hertz relationship (unit: Hz)
joule-inverse meter relationship (unit: m-1)
joule-kelvin relationship (unit: K)
joule-kilogram relationship (unit: kg)
kelvin-atomic mass unit relationship (unit: u)
kelvin-electron volt relationship (unit: eV)
kelvin-hartree relationship (unit: E_h)
kelvin-hertz relationship (unit: Hz)
kelvin-inverse meter relationship (unit: m-1)
kelvin-joule relationship (unit: J)
kelvin-kilogram relationship (unit: kg)
kilogram-atomic mass unit relationship (unit: u)
kilogram-electron volt relationship (unit: eV)
kilogram-hartree relationship (unit: E_h)
kilogram-hertz relationship (unit: Hz)
kilogram-inverse meter relationship (unit: m-1)
kilogram-joule relationship (unit: J)
kilogram-kelvin relationship (unit: K)
lattice parameter of silicon (unit: m)
lattice spacing of ideal Si (220) (unit: m)
Loschmidt constant (273.15 K, 100 kPa) (unit: m-3)
Loschmidt constant (273.15 K, 101.325 kPa) (unit: m-3)
luminous efficacy (unit: lm⋅W-1)
mag. flux quantum (unit: Wb)
molar gas constant (unit: J⋅mol-1⋅K-1)
molar mass constant (unit: kg⋅mol-1)
molar mass of carbon-12 (unit: kg⋅mol-1)
molar Planck constant (unit: J⋅Hz-1⋅mol-1)
molar volume of ideal gas (273.15 K, 100 kPa) (unit: m3⋅mol-1)
molar volume of ideal gas (273.15 K, 101.325 kPa) (unit: m3⋅mol-1)
molar volume of silicon (unit: m3⋅mol-1)
Molybdenum x unit (unit: m)
muon Compton wavelength (unit: m)
muon-electron mass ratio (dimensionless)
muon g factor (dimensionless)
muon mag. mom. (unit: J⋅T-1)
muon mag. mom. anomaly (dimensionless)
muon mag. mom. to Bohr magneton ratio (dimensionless)
muon mag. mom. to nuclear magneton ratio (dimensionless)
muon mass (unit: kg)
muon mass energy equivalent (unit: J)
muon mass energy equivalent in MeV (unit: MeV)
muon mass in u (unit: u)
muon molar mass (unit: kg⋅mol-1)
muon-neutron mass ratio (dimensionless)
muon-proton mag. mom. ratio (dimensionless)
muon-proton mass ratio (dimensionless)
muon-tau mass ratio (dimensionless)
natural unit of action (unit: J⋅s)
natural unit of action in eV s (unit: eV⋅s)
natural unit of energy (unit: J)
natural unit of energy in MeV (unit: MeV)
natural unit of length (unit: m)
natural unit of mass (unit: kg)
natural unit of momentum (unit: kg⋅m⋅s-1)
natural unit of momentum in MeV/c (unit: MeV/c)
natural unit of time (unit: s)
natural unit of velocity (unit: m⋅s-1)
neutron Compton wavelength (unit: m)
neutron-electron mag. mom. ratio (dimensionless)
neutron-electron mass ratio (dimensionless)
neutron gyromag. ratio (unit: s-1⋅T-1)
neutron gyromag. ratio in MHz/T (unit: MHz⋅T-1)
neutron g factor (dimensionless)
neutron mag. mom. (unit: J⋅T-1)
neutron mag. mom. to Bohr magneton ratio (dimensionless)
neutron mag. mom. to nuclear magneton ratio (dimensionless)
neutron mass (unit: kg)
neutron mass energy equivalent (unit: J)
neutron mass energy equivalent in MeV (unit: MeV)
neutron mass in u (unit: u)
neutron molar mass (unit: kg⋅mol-1)
neutron-muon mass ratio (dimensionless)
neutron-proton mag. mom. ratio (dimensionless)
neutron-proton mass difference (unit: kg)
neutron-proton mass difference energy equivalent (unit: J)
neutron-proton mass difference energy equivalent in MeV (unit: MeV)
neutron-proton mass difference in u (unit: u)
neutron-proton mass ratio (dimensionless)
neutron relative atomic mass (dimensionless)
neutron-tau mass ratio (dimensionless)
neutron to shielded proton mag. mom. ratio (dimensionless)
Newtonian constant of gravitation (unit: m3⋅kg-1⋅s-2)
Newtonian constant of gravitation over h-bar c (unit: (GeV/c2)-2)
nuclear magneton (unit: J⋅T-1)
nuclear magneton in eV/T (unit: eV⋅T-1)
nuclear magneton in inverse meter per tesla (unit: m-1⋅T-1)
nuclear magneton in K/T (unit: K⋅T-1)
nuclear magneton in MHz/T (unit: MHz⋅T-1)
Planck constant (unit: J⋅Hz-1)
Planck constant in eV/Hz (unit: eV⋅Hz-1)
Planck length (unit: m)
Planck mass (unit: kg)
Planck mass energy equivalent in GeV (unit: GeV)
Planck temperature (unit: K)
Planck time (unit: s)
proton charge to mass quotient (unit: C⋅kg-1)
proton Compton wavelength (unit: m)
proton-electron mass ratio (dimensionless)
proton gyromag. ratio (unit: s-1⋅T-1)
proton gyromag. ratio in MHz/T (unit: MHz⋅T-1)
proton g factor (dimensionless)
proton mag. mom. (unit: J⋅T-1)
proton mag. mom. to Bohr magneton ratio (dimensionless)
proton mag. mom. to nuclear magneton ratio (dimensionless)
proton mag. shielding correction (dimensionless)
proton mass (unit: kg)
proton mass energy equivalent (unit: J)
proton mass energy equivalent in MeV (unit: MeV)
proton mass in u (unit: u)
proton molar mass (unit: kg⋅mol-1)
proton-muon mass ratio (dimensionless)
proton-neutron mag. mom. ratio (dimensionless)
proton-neutron mass ratio (dimensionless)
proton relative atomic mass (dimensionless)
proton rms charge radius (unit: m)
proton-tau mass ratio (dimensionless)
quantum of circulation (unit: m2⋅s-1)
quantum of circulation times 2 (unit: m2⋅s-1)
reduced Compton wavelength (unit: m)
reduced muon Compton wavelength (unit: m)
reduced neutron Compton wavelength (unit: m)
reduced Planck constant (unit: J⋅s)
reduced Planck constant in eV s (unit: eV⋅s)
reduced Planck constant times c in MeV fm (unit: MeV⋅fm)
reduced proton Compton wavelength (unit: m)
reduced tau Compton wavelength (unit: m)
Rydberg constant (unit: m-1)
Rydberg constant times c in Hz (unit: Hz)
Rydberg constant times hc in eV (unit: eV)
Rydberg constant times hc in J (unit: J)
Sackur-Tetrode constant (1 K, 100 kPa) (dimensionless)
Sackur-Tetrode constant (1 K, 101.325 kPa) (dimensionless)
second radiation constant (unit: m⋅K)
shielded helion gyromag. ratio (unit: s-1⋅T-1)
shielded helion gyromag. ratio in MHz/T (unit: MHz⋅T-1)
shielded helion mag. mom. (unit: J⋅T-1)
shielded helion mag. mom. to Bohr magneton ratio (dimensionless)
shielded helion mag. mom. to nuclear magneton ratio (dimensionless)
shielded helion to proton mag. mom. ratio (dimensionless)
shielded helion to shielded proton mag. mom. ratio (dimensionless)
shielded proton gyromag. ratio (unit: s-1⋅T-1)
shielded proton gyromag. ratio in MHz/T (unit: MHz⋅T-1)
shielded proton mag. mom. (unit: J⋅T-1)
shielded proton mag. mom. to Bohr magneton ratio (dimensionless)
shielded proton mag. mom. to nuclear magneton ratio (dimensionless)
shielding difference of d and p in HD (dimensionless)
shielding difference of t and p in HT (dimensionless)
speed of light in vacuum (unit: m⋅s-1)
standard acceleration of gravity (unit: m⋅s-2)
standard atmosphere (unit: Pa)
standard-state pressure (unit: Pa)
Stefan-Boltzmann constant (unit: W⋅m-2⋅K-4)
tau Compton wavelength (unit: m)
tau-electron mass ratio (dimensionless)
tau energy equivalent (unit: MeV)
tau mass (unit: kg)
tau mass energy equivalent (unit: J)
tau mass in u (unit: u)
tau molar mass (unit: kg⋅mol-1)
tau-muon mass ratio (dimensionless)
tau-neutron mass ratio (dimensionless)
tau-proton mass ratio (dimensionless)
Thomson cross section (unit: m2)
triton-electron mass ratio (dimensionless)
triton g factor (dimensionless)
triton mag. mom. (unit: J⋅T-1)
triton mag. mom. to Bohr magneton ratio (dimensionless)
triton mag. mom. to nuclear magneton ratio (dimensionless)
triton mass (unit: kg)
triton mass energy equivalent (unit: J)
triton mass energy equivalent in MeV (unit: MeV)
triton mass in u (unit: u)
triton molar mass (unit: kg⋅mol-1)
triton-proton mass ratio (dimensionless)
triton relative atomic mass (dimensionless)
triton to proton mag. mom. ratio (dimensionless)
unified atomic mass unit (unit: kg)
vacuum electric permittivity (unit: F⋅m-1)
vacuum mag. permeability (unit: N⋅A-2)
von Klitzing constant (unit: ohm)
weak mixing angle (dimensionless)
Wien frequency displacement law constant (unit: Hz⋅K-1)
Wien wavelength displacement law constant (unit: m⋅K)
W to Z mass ratio (dimensionless)