mp_units::codata¶
The CODATA recommended values of the fundamental physical constants
Description¶
One nested namespace per supported adjustment. The latest one, 2022, is inline, so codata::magnetic_constant names its value and codata::codata2018::magnetic_constant pins an older one. Values fixed by convention rather than measured, such as the standard acceleration of gravity, live directly in this namespace.
#include <mp-units/systems/codata.h>
#include <mp-units/systems/si.h>
using namespace mp_units;
quantity electron_mass = 1. * codata::electron_mass; // CODATA 2022
quantity electron_mass_2018 = 1. * codata::codata2018::electron_mass; // CODATA 2018
Namespaces¶
| Name | Description |
|---|---|
codata2014 | The CODATA 2014 recommended values |
codata2018 | The CODATA 2018 recommended values |
Types¶
Variables¶
Using Declarations¶
| Name |
|---|
avogadro_constant |
boltzmann_constant |
elementary_charge |
hyperfine_structure_transition_frequency_of_cs |
luminous_efficacy |
planck_constant |
speed_of_light_in_vacuum |
See Also¶
- CODATA Fundamental Physical Constants in the User's Guide
- CODATA System for every entity it defines