Skip to main content

Module constants

Module constants 

Source
Expand description

Physical constants as dimensioned Quantitys (CODATA / SI-2019 defined values where exact). Each carries its dimension so it composes correctly in unit-checked arithmetic — e.g. ½·m·v² divided by k_B·T is dimensionless by construction.

Constants§

AVOGADRO
Avogadro constant, N_A (exact, SI-2019). mol⁻¹.
BOLTZMANN
Boltzmann constant, k_B (exact, SI-2019). J/K = m²·kg·s⁻²·K⁻¹.
ELECTRON_MASS
Electron mass, m_e. kg.
ELEMENTARY_CHARGE
Elementary charge, e (exact, SI-2019). Coulomb = A·s.
GAS_CONSTANT
Molar gas constant, R = N_A·k_B (exact). J·mol⁻¹·K⁻¹.
GRAVITATIONAL
Newtonian constant of gravitation, G. m³·kg⁻¹·s⁻².
PLANCK
Planck constant, h (exact, SI-2019). J·s = m²·kg·s⁻¹.
PROTON_MASS
Proton mass, m_p. kg.
REDUCED_PLANCK
Reduced Planck constant, ħ = h/2π. Same dimension as h.
SPEED_OF_LIGHT
Speed of light in vacuum, c (exact, SI-2019). 299 792 458 m/s.
STANDARD_ATMOSPHERE
Standard atmosphere (defined). 101 325 Pa.
STANDARD_GRAVITY
Standard gravity, g₀ (defined). m/s².
STEFAN_BOLTZMANN
Stefan–Boltzmann constant, σ. W·m⁻²·K⁻⁴ = kg·s⁻³·K⁻⁴.