Elements 6.3.3
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
MathConstants.h
Go to the documentation of this file.
1
20
25
26#ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_MATHCONSTANTS_H_
27#define ELEMENTSKERNEL_ELEMENTSKERNEL_MATHCONSTANTS_H_
28
29namespace Elements {
30inline namespace Kernel {
31namespace Units {
32
34constexpr double pi = 3.14159265358979323846;
36constexpr double twopi = 2.0 * pi;
38constexpr double halfpi = pi / 2.0;
40constexpr double pi2 = pi * pi;
42constexpr double sqrt_of_pi = 1.77245385090551602730;
44constexpr double sqrt_of_two = 1.41421356237309504880;
46constexpr double sqrt_of_halfpi = 1.25331413731550025121;
47
49constexpr double gamma = 0.57721566490153286061;
51constexpr double e = 2.71828182845904523536;
52
53} // namespace Units
54} // namespace Kernel
55} // namespace Elements
56
57#endif // ELEMENTSKERNEL_ELEMENTSKERNEL_MATHCONSTANTS_H_
58
constexpr double sqrt_of_halfpi
constexpr double e
The base of the natural logarithm .
constexpr double gamma
The Euler-Mascheroni constant.
constexpr double sqrt_of_two
constexpr double pi2
constexpr double sqrt_of_pi
constexpr double pi
constexpr double halfpi
constexpr double twopi