All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Constants.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_MATH_CONSTANTS_H_
23 #define _BLAZE_MATH_CONSTANTS_H_
24 
25 
26 //*************************************************************************************************
27 // Includes
28 //*************************************************************************************************
29 
30 #include <cmath>
31 #include <blaze/system/Precision.h>
32 
33 
34 namespace blaze {
35 
36 //=================================================================================================
37 //
38 // MATHEMATICAL CONSTANT E
39 //
40 //=================================================================================================
41 
42 #ifdef M_E
43 # undef M_E
44 #endif
45 
46 //*************************************************************************************************
50 const real M_E = 2.7182818284590452353602874713526625;
51 //*************************************************************************************************
52 
53 
54 
55 
56 //=================================================================================================
57 //
58 // MATHEMATICAL CONSTANT LOG2E
59 //
60 //=================================================================================================
61 
62 #ifdef M_LOG2E
63 # undef M_LOG2E
64 #endif
65 
66 //*************************************************************************************************
70 const real M_LOG2E = 1.4426950408889634073599246810018921;
71 //*************************************************************************************************
72 
73 
74 
75 
76 //=================================================================================================
77 //
78 // MATHEMATICAL CONSTANT LOG10E
79 //
80 //=================================================================================================
81 
82 #ifdef M_LOG10E
83 # undef M_LOG10E
84 #endif
85 
86 //*************************************************************************************************
90 const real M_LOG10E = 0.4342944819032518276511289189166051;
91 //*************************************************************************************************
92 
93 
94 
95 
96 //=================================================================================================
97 //
98 // MATHEMATICAL CONSTANT LN2
99 //
100 //=================================================================================================
101 
102 #ifdef M_LN2
103 # undef M_LN2
104 #endif
105 
106 //*************************************************************************************************
110 const real M_LN2 = 0.6931471805599453094172321214581766;
111 //*************************************************************************************************
112 
113 
114 
115 
116 //=================================================================================================
117 //
118 // MATHEMATICAL CONSTANT LN10
119 //
120 //=================================================================================================
121 
122 #ifdef M_LN10
123 # undef M_LN10
124 #endif
125 
126 //*************************************************************************************************
130 const real M_LN10 = 2.3025850929940456840179914546843642;
131 //*************************************************************************************************
132 
133 
134 
135 
136 //=================================================================================================
137 //
138 // MATHEMATICAL CONSTANT PI
139 //
140 //=================================================================================================
141 
142 #ifdef M_PI
143 # undef M_PI
144 #endif
145 
146 //*************************************************************************************************
150 const real M_PI = 3.1415926535897932384626433832795029;
151 //*************************************************************************************************
152 
153 
154 
155 
156 //=================================================================================================
157 //
158 // MATHEMATICAL CONSTANT SQRT2
159 //
160 //=================================================================================================
161 
162 #ifdef M_SQRT2
163 # undef M_SQRT2
164 #endif
165 
166 //*************************************************************************************************
170 const real M_SQRT2 = 1.4142135623730950488016887242096981;
171 //*************************************************************************************************
172 
173 
174 
175 
176 //=================================================================================================
177 //
178 // MATHEMATICAL CONSTANT SQRT3
179 //
180 //=================================================================================================
181 
182 #ifdef M_SQRT3
183 # undef M_SQRT3
184 #endif
185 
186 //*************************************************************************************************
190 const real M_SQRT3 = 1.7320508075688772935274463415058724;
191 //*************************************************************************************************
192 
193 } // namespace blaze
194 
195 #endif