33 constexpr
quantity<
dimensions<0, 0, 0, 0, 0, -1>> N_sub_A{Rep(6.02214199e+23L) / mole};
39 constexpr
quantity<dimensions<-3, -1, 4, 2>> epsilonZero{Rep(8.8541878128e-12L) *
46 constexpr
quantity<dimensions<2, 1, -1>> h{Rep(6.62606876e-34L) * joule * second};
47 constexpr
quantity<dimensions<2, 1, -1>> hBar{h / (2 * M_PI)};
51 constexpr
auto cSquared = c * c;
55 Rep(1.973
'269'78e-7L) * electronvolt * meter};
57 auto constexpr invGeVsq = 1e-18 / (electronvolt * electronvolt);
62 auto constexpr nucleonMass = 0.5 * (0.93827 + 0.93957) * 1e9 * electronvolt;
65 auto constexpr R = Rep(8.314
'459'8) * joule / (mole * kelvin);
70 namespace EarthRadius {
71 static constexpr
auto Mean{6
'371'000 * meter};
72 static constexpr
auto Geomagnetic_reference{6
'371'200 * meter};
73 static constexpr
auto Equatorial{6
'378'137 * meter};
74 static constexpr
auto Polar{6
'356'752 * meter};
75 static constexpr
auto PolarCurvature{6
'399'593 * meter};
Physical and mathematical constants with units.
We could drag dimensions around individually, but it's much more convenient to package them...
Import and extend the phys::units package.
class "quantity" is the heart of the library.
constexpr detail::Power< D, 2, X > square(quantity< D, X > const &x)
square.