Elements  5.8
A C++ base framework for the Euclid Software.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MathConstants.h
Go to the documentation of this file.
1 
26 #ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_MATHCONSTANTS_H_
27 #define ELEMENTSKERNEL_ELEMENTSKERNEL_MATHCONSTANTS_H_
28 
29 namespace Elements {
30 namespace Units {
31 
33 constexpr double pi = 3.14159265358979323846;
35 constexpr double twopi = 2.0*pi;
37 constexpr double halfpi = pi/2.0;
39 constexpr double pi2 = pi*pi;
41 constexpr double sqrt_of_pi = 1.77245385090551602730;
43 constexpr double sqrt_of_two = 1.41421356237309504880;
45 constexpr double sqrt_of_halfpi = 1.25331413731550025121;
46 
48 constexpr double gamma = 0.57721566490153286061;
50 constexpr double e = 2.71828182845904523536;
51 
52 } // namespace Units
53 } // namespace Elements
54 
55 #endif // ELEMENTSKERNEL_ELEMENTSKERNEL_MATHCONSTANTS_H_
56 
constexpr double pi
Definition: MathConstants.h:33
constexpr double pi2
Definition: MathConstants.h:39
constexpr double gamma
The Euler-Mascheroni constant.
Definition: MathConstants.h:48
constexpr double sqrt_of_pi
Definition: MathConstants.h:41
constexpr double sqrt_of_two
Definition: MathConstants.h:43
constexpr double e
The base of the natural logarithm .
Definition: MathConstants.h:50
constexpr double halfpi
Definition: MathConstants.h:37
constexpr double sqrt_of_halfpi
Definition: MathConstants.h:45
constexpr double twopi
Definition: MathConstants.h:35