25 #include <type_traits> 38 template<
typename Scalar,
39 typename =
typename std::is_floating_point<Scalar>::type>
43 static inline Scalar
k() {
44 return Scalar(1.3806488
e-23);
48 static inline Scalar
pi() {
49 return Scalar(3.1415926535897932384626433832795029L);
54 return Scalar(6.02214129e23);
58 static inline Scalar
R() {
63 static inline Scalar
e() {
64 return Scalar(2.7182818284590452353602874713526624L);
93 typedef std::ratio<47627751, 15160384>
pi;
103 typedef std::ratio<28245729, 10391023>
e;
static Scalar avogadro()
Avogadro's constant .
static Scalar e()
The base of the natural logarithm .
Physical constants in different floating point representations.
std::ratio< 28245729, 10391023 > e
A rational approximation of .
static Scalar k()
Boltzmann's constant .
Physical constants approximated in std::ratio representation.
The stator library namespace.
std::ratio< 47627751, 15160384 > pi
A rational approximation of .
static Scalar R()
The universal gas constant .