32 #pragma GCC system_header
34 #if __cplusplus < 201103L
41 namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
43 _GLIBCXX_BEGIN_NAMESPACE_VERSION
46 template<
typename _RealType>
47 struct __math_constants
50 "template argument not a floating point type");
53 static constexpr _RealType __pi = 3.1415926535897932384626433832795029L;
55 static constexpr _RealType __pi_half = 1.5707963267948966192313216916397514L;
57 static constexpr _RealType __pi_third = 1.0471975511965977461542144610931676L;
59 static constexpr _RealType __pi_quarter = 0.7853981633974483096156608458198757L;
61 static constexpr _RealType __root_pi_div_2 = 1.2533141373155002512078826424055226L;
63 static constexpr _RealType __one_div_pi = 0.3183098861837906715377675267450287L;
65 static constexpr _RealType __two_div_pi = 0.6366197723675813430755350534900574L;
67 static constexpr _RealType __two_div_root_pi = 1.1283791670955125738961589031215452L;
70 static constexpr _RealType __e = 2.7182818284590452353602874713526625L;
72 static constexpr _RealType __one_div_e = 0.36787944117144232159552377016146087L;
74 static constexpr _RealType __log2_e = 1.4426950408889634073599246810018921L;
76 static constexpr _RealType __log10_e = 0.4342944819032518276511289189166051L;
78 static constexpr _RealType __ln_2 = 0.6931471805599453094172321214581766L;
80 static constexpr _RealType __ln_3 = 1.0986122886681096913952452369225257L;
82 static constexpr _RealType __ln_10 = 2.3025850929940456840179914546843642L;
85 static constexpr _RealType __gamma_e = 0.5772156649015328606065120900824024L;
87 static constexpr _RealType __phi = 1.6180339887498948482045868343656381L;
90 static constexpr _RealType __root_2 = 1.4142135623730950488016887242096981L;
92 static constexpr _RealType __root_3 = 1.7320508075688772935274463415058724L;
94 static constexpr _RealType __root_5 = 2.2360679774997896964091736687312762L;
96 static constexpr _RealType __root_7 = 2.6457513110645905905016157536392604L;
98 static constexpr _RealType __one_div_root_2 = 0.7071067811865475244008443621048490L;
102 template<
typename _RealType>
103 constexpr _RealType __math_constants<_RealType>::__pi;
104 template<
typename _RealType>
105 constexpr _RealType __math_constants<_RealType>::__pi_half;
106 template<
typename _RealType>
107 constexpr _RealType __math_constants<_RealType>::__pi_third;
108 template<
typename _RealType>
109 constexpr _RealType __math_constants<_RealType>::__pi_quarter;
110 template<
typename _RealType>
111 constexpr _RealType __math_constants<_RealType>::__root_pi_div_2;
112 template<
typename _RealType>
113 constexpr _RealType __math_constants<_RealType>::__one_div_pi;
114 template<
typename _RealType>
115 constexpr _RealType __math_constants<_RealType>::__two_div_pi;
116 template<
typename _RealType>
117 constexpr _RealType __math_constants<_RealType>::__two_div_root_pi;
118 template<
typename _RealType>
119 constexpr _RealType __math_constants<_RealType>::__e;
120 template<
typename _RealType>
121 constexpr _RealType __math_constants<_RealType>::__one_div_e;
122 template<
typename _RealType>
123 constexpr _RealType __math_constants<_RealType>::__log2_e;
124 template<
typename _RealType>
125 constexpr _RealType __math_constants<_RealType>::__log10_e;
126 template<
typename _RealType>
127 constexpr _RealType __math_constants<_RealType>::__ln_2;
128 template<
typename _RealType>
129 constexpr _RealType __math_constants<_RealType>::__ln_3;
130 template<
typename _RealType>
131 constexpr _RealType __math_constants<_RealType>::__ln_10;
132 template<
typename _RealType>
133 constexpr _RealType __math_constants<_RealType>::__gamma_e;
134 template<
typename _RealType>
135 constexpr _RealType __math_constants<_RealType>::__phi;
136 template<
typename _RealType>
137 constexpr _RealType __math_constants<_RealType>::__root_2;
138 template<
typename _RealType>
139 constexpr _RealType __math_constants<_RealType>::__root_3;
140 template<
typename _RealType>
141 constexpr _RealType __math_constants<_RealType>::__root_5;
142 template<
typename _RealType>
143 constexpr _RealType __math_constants<_RealType>::__root_7;
144 template<
typename _RealType>
145 constexpr _RealType __math_constants<_RealType>::__one_div_root_2;
147 _GLIBCXX_END_NAMESPACE_VERSION