forked from mpusz/mp-units
style: whitespaces fixed to make pre-commit happy
This commit is contained in:
@@ -63,7 +63,7 @@ Angular quantities in the :term:`SI`
|
|||||||
------------------------------------
|
------------------------------------
|
||||||
|
|
||||||
Even though the :term:`SI` somehow ignores the dimensionality of angle:
|
Even though the :term:`SI` somehow ignores the dimensionality of angle:
|
||||||
|
|
||||||
Plane and solid angles, when expressed in radians and steradians respectively, are in effect
|
Plane and solid angles, when expressed in radians and steradians respectively, are in effect
|
||||||
also treated within the SI as quantities with the unit one. The symbols :math:`rad`
|
also treated within the SI as quantities with the unit one. The symbols :math:`rad`
|
||||||
and :math:`sr` are written explicitly where appropriate, in order to emphasize that, for radians or
|
and :math:`sr` are written explicitly where appropriate, in order to emphasize that, for radians or
|
||||||
|
@@ -201,28 +201,28 @@ Defining constants
|
|||||||
Those constants are provided in the *units/isq/si/constants.h* header file as::
|
Those constants are provided in the *units/isq/si/constants.h* header file as::
|
||||||
|
|
||||||
namespace units::isq::si::si2019 {
|
namespace units::isq::si::si2019 {
|
||||||
|
|
||||||
template<Representation Rep = double>
|
template<Representation Rep = double>
|
||||||
inline constexpr auto hyperfine_structure_transition_frequency = frequency<hertz, Rep>(Rep{9'192'631'770});
|
inline constexpr auto hyperfine_structure_transition_frequency = frequency<hertz, Rep>(Rep{9'192'631'770});
|
||||||
|
|
||||||
template<Representation Rep = double>
|
template<Representation Rep = double>
|
||||||
inline constexpr auto speed_of_light = speed<metre_per_second, Rep>(299'792'458);
|
inline constexpr auto speed_of_light = speed<metre_per_second, Rep>(299'792'458);
|
||||||
|
|
||||||
template<Representation Rep = double>
|
template<Representation Rep = double>
|
||||||
inline constexpr auto planck_constant = energy<joule, Rep>(6.62607015e-34) * time<second, Rep>(1);
|
inline constexpr auto planck_constant = energy<joule, Rep>(6.62607015e-34) * time<second, Rep>(1);
|
||||||
|
|
||||||
template<Representation Rep = double>
|
template<Representation Rep = double>
|
||||||
inline constexpr auto elementary_charge = electric_charge<coulomb, Rep>(1.602176634e-19);
|
inline constexpr auto elementary_charge = electric_charge<coulomb, Rep>(1.602176634e-19);
|
||||||
|
|
||||||
template<Representation Rep = double>
|
template<Representation Rep = double>
|
||||||
inline constexpr auto boltzmann_constant = energy<joule, Rep>(1.380649e-23) / thermodynamic_temperature<kelvin, Rep>(1);
|
inline constexpr auto boltzmann_constant = energy<joule, Rep>(1.380649e-23) / thermodynamic_temperature<kelvin, Rep>(1);
|
||||||
|
|
||||||
template<Representation Rep = double>
|
template<Representation Rep = double>
|
||||||
inline constexpr auto avogadro_constant = Rep(6.02214076e23) / amount_of_substance<mole, Rep>(1);
|
inline constexpr auto avogadro_constant = Rep(6.02214076e23) / amount_of_substance<mole, Rep>(1);
|
||||||
|
|
||||||
template<Representation Rep = double>
|
template<Representation Rep = double>
|
||||||
inline constexpr auto luminous_efficacy = luminous_flux<lumen, Rep>(683) / power<watt, Rep>(1);
|
inline constexpr auto luminous_efficacy = luminous_flux<lumen, Rep>(683) / power<watt, Rep>(1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
Reference in New Issue
Block a user