54#ifndef CONSTANTS_IN_ARTS_H
55#define CONSTANTS_IN_ARTS_H
118 0.8325546111576977563531646448952010476305888522644407291668291172340794351973;
122 1.201122408786449794857803286095221722566764028068699423868879896733837175546;
Simple constexpr math that we can make use of in Arts.
NUMERIC Numeric
The type to use for all floating point numbers.
Namespace containing several constants, physical and mathematical.
constexpr Numeric unified_atomic_mass_unit
Unified atomic mass unit [kg] From: https://physics.nist.gov/cgi-bin/cuu/Value?ukg Date: 2020-02-18 R...
constexpr Numeric R_inf
Rydberg constant convenience name [1/m].
constexpr Numeric log10_euler
Ten's logarithm of Euler's number.
constexpr Numeric bohr_magneton
Bohr magneton [J/T].
constexpr Numeric one_degree_in_radians
One degree in radians.
constexpr Numeric inv_two_pi
Inverse of two pi.
constexpr Numeric inv_sqrt_pi
Inverse of the square root of pi.
constexpr Numeric m_e
Mass of resting electron convenience name [kg].
constexpr Numeric Delta_nu_Cs
Cesium-133 Unperturbed ground-state hyperfine transition frequency [Hz] From: https://en....
constexpr Numeric cosmic_microwave_background_temperature
Global constant, Planck temperature for cosmic background radiation [K].
constexpr Numeric fine_structure_constant
Fine structure constant [-] From: https://physics.nist.gov/cgi-bin/cuu/Value?alph Date: 2019-06-18 Re...
constexpr Numeric h_bar
Reduced planck constant convenience name [J s].
constexpr Numeric doppler_broadening_const_squared
Doppler broadening constant squared [kg/T]^2.
constexpr Numeric boltzmann_constant
Boltzmann constant [J/K] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date:...
constexpr Numeric sqrt_ln_2
Square root of natural logarithm of 2.
constexpr Numeric pi
The following mathematical constants are generated in python Decimal package by the code:
constexpr Numeric vacuum_permittivity
Vacuum permittivity [F/m].
constexpr Numeric euler
Euler's number.
constexpr Numeric electron_mass
Mass of resting electron [kg].
constexpr Numeric stefan_boltzmann_constant
Stefan-Boltzmann constant [W/(K^4*m^2)].
constexpr Numeric ln_2
Natural logarithm of 2.
constexpr Numeric inv_ln_2
Inverse of the natural logarithm of 2.
constexpr Numeric ideal_gas_constant
Ideal gas constant [J/mol K].
constexpr Numeric neutron_mass
Mass of a neutron [kg].
constexpr Numeric ln_10
Natural logarithm of 10.
constexpr Numeric two_pi
Two times pi.
constexpr Numeric inv_sqrt_ln_2
Inverse of the square root of the natural logarithm of 2.
constexpr Numeric R
Ideal gas constant convenience name [J/mol K].
constexpr Numeric K_cd
Luminous efficacy of monochromatic 540 THz radiation [lm / W] From: https://en.wikipedia....
constexpr Numeric k
Boltzmann constant convenience name [J/K].
constexpr Numeric mass_ratio_electrons_per_neutron
Mass ratio of electrons to protons [-] From: https://physics.nist.gov/cgi-bin/cuu/Value?...
constexpr Numeric speed_of_light
Speed of light [m/s] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 201...
constexpr Numeric reduced_planck_constant
Reduced planck constant [J s].
constexpr Numeric rydberg_constant
Rydberg constant [1/m] From: https://physics.nist.gov/cgi-bin/cuu/Value?ryd Date: 2016-06-18 Reported...
constexpr Numeric inv_euler
Inverse of Euler's number.
constexpr Numeric earth_radius
Global constant, the radius of the Earth [m].
constexpr Numeric inv_sqrt_2
Inverse of the square root of 2.
constexpr Numeric planck_constant
Planck constant [J s] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 20...
constexpr Numeric NA
Avogadro constant convenience name [1/mol].
constexpr Numeric sigma
Stefan-Boltzmann constant convenience name [W/(K^4*m^2)].
constexpr Numeric sqrt_pi
Square root of pi.
constexpr Numeric c
Speed of light convenience name [m/s].
constexpr Numeric magnetic_constant
Magnetic constant [H/m].
constexpr Numeric avogadro_constant
Avogadro constant [1/mol] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date...
constexpr Numeric e
Elementary charge convenience name [C].
constexpr Numeric temperature_at_0c
Global constant, Temperature in Celsius of 0 Kelvin.
constexpr Numeric inv_pi
Inverse of pi.
constexpr Numeric elementary_charge
Elementary charge [C] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 20...
constexpr Numeric h
Planck constant convenience name [J s].
constexpr Numeric proton_mass
Mass of a proton [kg].
constexpr Numeric density_of_ice_at_0c
Global constant, Density of water ice at 0C [kg/m3] source: http://en.wikipedia.org/wiki/Ice.
constexpr Numeric mass_ratio_electrons_per_proton
Mass ratio of electrons to protons [-] From: https://physics.nist.gov/cgi-bin/cuu/Value?...
constexpr Numeric alpha
Fine structure constant convenience name [-].
constexpr Numeric mu_0
Magnetic constant convenience name [H/m].
constexpr Numeric sqrt_2
Square root of 2.
constexpr Numeric denity_of_water_at_4c
Global constant, Density of liquid water +4C [kg/m3] source: http://en.wikipedia.org/wiki/Water.
constexpr Numeric epsilon_0
Vacuum permittivity convenience name [F/m].
constexpr Numeric m_u
Unified atomic mass unit convenience name [kg].
constexpr auto pow3(auto x) noexcept
power of three
constexpr auto pow4(auto x) noexcept
power of four
constexpr auto pow2(auto x) noexcept
power of two