Physical Constants
The units library provides mathematical and physical constants as constexpr variables.
SI Defining Constants
| Name | Description |
|---|---|
|
Speed of light (299,792,458 m/s) |
|
Planck constant |
|
Elementary charge |
|
Boltzmann constant |
|
Avogadro constant |
|
Luminous efficacy |
Derived Constants
| Name | Description |
|---|---|
|
Reduced Planck constant |
|
Gravitational constant |
|
Permeability of free space |
|
Permittivity of free space |
|
Molar gas constant |
|
Faraday constant |
|
Stefan-Boltzmann constant |
|
Standard acceleration due to gravity (9.80665 m/s²) |
|
Electron mass |
|
Proton mass |
Conformance
The units and fundamental constants are taken from:
"The International System of Units" 9th edition (2019).
Other physical constants are from:
Tiesinga, E., Mohr, P. J., Newell, D. B., & Taylor, B. N. (2021). CODATA recommended quantities of the fundamental physical constants: 2018. Reviews of Modern Physics, 93(2), 025010.
Any deviation from these documents shall be considered a bug.