scientific-constants 0.1.1

Access, use and create scientific constants in your codebase!
Documentation
use super::Constant;

/// # Atomic mass constant
/// The atomic mass constant goes by the symbols *Da* and *m_u*. It's measured in *kilograms*.
pub const ATOMIC_MASS: Constant = Constant::new("Da", 1.66053906660e-27, "kg");

/// # Avogadro's constant
/// Avogadro's constant goes by the symbols *N_A* and *L*. It's measured in *mole*.
pub const AVOGADRO: Constant = Constant::new("N_A", 6.022142e23, "mol");

/// # Bohr's magneton constant
/// Bohr's magneton constant goes by the symbol *µ_B*. It's measured in *joules per tesla*.
pub const BOHR_MAGNETON: Constant = Constant::new("µ_B", 9.2740100783e-24, "J/T");

/// # Bohr's radius constant
/// Bohr's radius constant goes by the symbols *µ_B* and sometimes *r_Bohr*. It's measured in *joules per tesla*.
pub const BOHR_RADIUS: Constant = Constant::new("a_0", 5.29177210903e-11, "m");

/// # Boltzmann's constant
/// Boltzmann's constant goes by the symbols *k_B* and *k*. It's measured in *joules per kelvin*.
pub const BOLTZMANN: Constant = Constant::new("k_B", 1.380649e-23, "J/K");

/// # Coulomb's constant
/// Coloumb's constant goes by the symbol *k_e*. It's measured in *newton squaremeters per squared coulomb*.
pub const COULOMB: Constant = Constant::new("k_e", 8.9875517923e9, "(N * m²) / C²");

/// # Electron mass constant
/// The constant defining the mass of an electron goes by the symbol *m_e*. It's measured in *kilograms*.
pub const ELECTRON_MASS: Constant = Constant::new("m_e", 9.1093837015e-31, "kg");

/// # Electron radius constant
/// The electron radius constant goes by the symbol *r_e*. It's measured in *meters*.
pub const ELECTRON_RADIUS: Constant = Constant::new("r_e", 2.8179403262e-15, "m");

/// # Elementary charge constant
/// The elementary charge constant goes by the symbol *e*. It's measured in *coulomb*.
pub const ELEMENTARY_CHARGE: Constant = Constant::new("e", 1.602176634e-19, "C");

/// # Faraday's constant
/// Faraday's constant goes by the symbol *F*. It's measured in *coulomb per mole*.
pub const FARADAY: Constant = Constant::new("F", 96485.3321233100184, "C / mol");

/// # Fermi's coupling constant
/// Fermi's coupling constant goes by the symbol *G_F*. It's measured in *G per squared electronvolt*.
pub const FERMI: Constant = Constant::new("F", 96485.3321233100184, "G / eV²");

/// # Quantum conductance constant
/// The quantum conductance constant goes by the symbol *G_0*. It's measured in *siemens*.
pub const QUANTUM_CONDUCTANCE: Constant = Constant::new("Z_0", 7.748091729e-5, "S");

/// # First radiation constant
/// The first radiation constant goes by the symbol *c_1*. It's measured in *watts per squaremeter*.
pub const RADIATION_1: Constant = Constant::new("c_1", 3.741771852e-16, "W * m²");

/// # Second radiation constant
/// The second radiation constant goes by the symbol *c_2*. It's measured in *meters per kelvin*.
pub const RADIATION_2: Constant = Constant::new("c_2", 1.438776877e-2, "m * K");

/// # Impedance of vacuum constant
/// The impedance of vacuum constant goes by the symbol *Z_0*. It's measured in *ohm*.
pub const VACUUM_IMPEDANCE: Constant = Constant::new("Z_0", 376.730313668, "Ω");

/// # Planck's constant
/// Planck's constant goes by the symbol *h*. It's measured in *joules per hertz*.
pub const PLANCK: Constant = Constant::new("h", 6.62607015e-34, "J * 1/s");