33 constexpr
quantity<
dimensions<0, 0, 0, 0, 0, -1>> N_sub_A{Rep(6.02214199e+23L) / mole};
42 constexpr
quantity<dimensions<2, 1, -1>> h{Rep(6.62606876e-34L) * joule * second};
43 constexpr
quantity<dimensions<2, 1, -1>> hBar{h / (2 * M_PI)};
47 constexpr
auto cSquared = c * c;
51 Rep(1.973
'269'78e-7L) * electronvolt * meter};
53 auto constexpr invGeVsq = 1e-18 / (electronvolt * electronvolt);
58 auto constexpr nucleonMass = 0.5 * (0.93827 + 0.93957) * 1e9 * electronvolt;
61 auto constexpr R = Rep(8.314
'459'8) * joule / (mole * kelvin);
66 namespace EarthRadius {
67 static constexpr
auto Mean{6
'371'000 * meter};
68 static constexpr
auto Eqautorial{6
'378'137 * meter};
69 static constexpr
auto Polar{6
'356'752 * meter};
70 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.