Skip to main content

Module constants

Module constants 

Source
Expand description

Physical constants as first-class Quantity values — each carries its dimension, so they compose with units under the same dimensional algebra (E = m·c² type-checks, and c can be asked for in kilometres_per_hour). The post-2019-SI defining constants are EXACT rationals (the SI fixes their numeric values); measured constants (G) use their CODATA value.

Functions§

avogadro_constant
Avogadro constant, N_A = 6.022 140 76 × 10²³ mol⁻¹ (exact).
boltzmann_constant
Boltzmann constant, k_B = 1.380 649 × 10⁻²³ J/K (exact).
elementary_charge
Elementary charge, e = 1.602 176 634 × 10⁻¹⁹ C (exact).
gravitational_constant
Newtonian gravitational constant, G = 6.674 30 × 10⁻¹¹ m³·kg⁻¹·s⁻² (CODATA measured value).
molar_gas_constant
Molar gas constant, R = N_A · k_B = 8.314 462 618… J/(mol·K) (exact, a product of exacts).
planck_constant
Planck constant, h = 6.626 070 15 × 10⁻³⁴ J·s (exact).
speed_of_light
Speed of light in vacuum, c = 299 792 458 m/s (exact).
standard_atmosphere
Standard atmosphere, atm = 101 325 Pa (exact by definition).
standard_gravity
Standard gravity, g₀ = 9.806 65 m/s² (exact by definition).