Elements  6.2
A C++ base framework for the Euclid Software.
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 inline namespace Kernel {
31 namespace Units {
32 
34 constexpr double pi = 3.14159265358979323846;
36 constexpr double twopi = 2.0 * pi;
38 constexpr double halfpi = pi / 2.0;
40 constexpr double pi2 = pi * pi;
42 constexpr double sqrt_of_pi = 1.77245385090551602730;
44 constexpr double sqrt_of_two = 1.41421356237309504880;
46 constexpr double sqrt_of_halfpi = 1.25331413731550025121;
47 
49 constexpr double gamma = 0.57721566490153286061;
51 constexpr double e = 2.71828182845904523536;
52 
53 } // namespace Units
54 } // namespace Kernel
55 } // namespace Elements
56 
57 #endif // ELEMENTSKERNEL_ELEMENTSKERNEL_MATHCONSTANTS_H_
58 
Elements::Kernel::Units::sqrt_of_halfpi
constexpr double sqrt_of_halfpi
Definition: MathConstants.h:46
Elements::Kernel::Units::pi2
constexpr double pi2
Definition: MathConstants.h:40
Elements::Kernel::Units::twopi
constexpr double twopi
Definition: MathConstants.h:36
Elements::Kernel::Units::sqrt_of_two
constexpr double sqrt_of_two
Definition: MathConstants.h:44
Elements::Kernel::Units::pi
constexpr double pi
Definition: MathConstants.h:34
Elements::Kernel::Units::gamma
constexpr double gamma
The Euler-Mascheroni constant.
Definition: MathConstants.h:49
Elements::Kernel::Units::halfpi
constexpr double halfpi
Definition: MathConstants.h:38
Elements::Kernel::Units::sqrt_of_pi
constexpr double sqrt_of_pi
Definition: MathConstants.h:42
Elements::Kernel::Units::e
constexpr double e
The base of the natural logarithm .
Definition: MathConstants.h:51
Elements
Definition: callBackExample.h:35