All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Constants.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_CONSTANTS_H_
36 #define _BLAZE_MATH_CONSTANTS_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <cmath>
44 #include <blaze/system/Precision.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // MATHEMATICAL CONSTANT E
52 //
53 //=================================================================================================
54 
55 #ifdef M_E
56 # undef M_E
57 #endif
58 
59 //*************************************************************************************************
63 const real M_E = 2.7182818284590452353602874713526625;
64 //*************************************************************************************************
65 
66 
67 
68 
69 //=================================================================================================
70 //
71 // MATHEMATICAL CONSTANT LOG2E
72 //
73 //=================================================================================================
74 
75 #ifdef M_LOG2E
76 # undef M_LOG2E
77 #endif
78 
79 //*************************************************************************************************
83 const real M_LOG2E = 1.4426950408889634073599246810018921;
84 //*************************************************************************************************
85 
86 
87 
88 
89 //=================================================================================================
90 //
91 // MATHEMATICAL CONSTANT LOG10E
92 //
93 //=================================================================================================
94 
95 #ifdef M_LOG10E
96 # undef M_LOG10E
97 #endif
98 
99 //*************************************************************************************************
103 const real M_LOG10E = 0.4342944819032518276511289189166051;
104 //*************************************************************************************************
105 
106 
107 
108 
109 //=================================================================================================
110 //
111 // MATHEMATICAL CONSTANT LN2
112 //
113 //=================================================================================================
114 
115 #ifdef M_LN2
116 # undef M_LN2
117 #endif
118 
119 //*************************************************************************************************
123 const real M_LN2 = 0.6931471805599453094172321214581766;
124 //*************************************************************************************************
125 
126 
127 
128 
129 //=================================================================================================
130 //
131 // MATHEMATICAL CONSTANT LN10
132 //
133 //=================================================================================================
134 
135 #ifdef M_LN10
136 # undef M_LN10
137 #endif
138 
139 //*************************************************************************************************
143 const real M_LN10 = 2.3025850929940456840179914546843642;
144 //*************************************************************************************************
145 
146 
147 
148 
149 //=================================================================================================
150 //
151 // MATHEMATICAL CONSTANT PI
152 //
153 //=================================================================================================
154 
155 #ifdef M_PI
156 # undef M_PI
157 #endif
158 
159 //*************************************************************************************************
163 const real M_PI = 3.1415926535897932384626433832795029;
164 //*************************************************************************************************
165 
166 
167 
168 
169 //=================================================================================================
170 //
171 // MATHEMATICAL CONSTANT SQRT2
172 //
173 //=================================================================================================
174 
175 #ifdef M_SQRT2
176 # undef M_SQRT2
177 #endif
178 
179 //*************************************************************************************************
183 const real M_SQRT2 = 1.4142135623730950488016887242096981;
184 //*************************************************************************************************
185 
186 
187 
188 
189 //=================================================================================================
190 //
191 // MATHEMATICAL CONSTANT SQRT3
192 //
193 //=================================================================================================
194 
195 #ifdef M_SQRT3
196 # undef M_SQRT3
197 #endif
198 
199 //*************************************************************************************************
203 const real M_SQRT3 = 1.7320508075688772935274463415058724;
204 //*************************************************************************************************
205 
206 } // namespace blaze
207 
208 #endif
const real M_LN10
Definition of the mathematical constant .
Definition: Constants.h:143
const real M_E
Definition of the mathematical constant .
Definition: Constants.h:63
const real M_LOG2E
Definition of the mathematical constant .
Definition: Constants.h:83
const real M_SQRT2
Definition of the mathematical constant .
Definition: Constants.h:183
Header file for the floating point precision of the Blaze library.
const real M_LOG10E
Definition of the mathematical constant .
Definition: Constants.h:103
const real M_SQRT3
Definition of the mathematical constant .
Definition: Constants.h:203
const real M_LN2
Definition of the mathematical constant .
Definition: Constants.h:123
const real M_PI
Definition of the mathematical constant .
Definition: Constants.h:163
double real
Floating point data type of the Blaze library.This type definition offers the possibility to switch t...
Definition: Precision.h:47