File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ namespace Math {
28
28
constexpr float sqrt3_f = 1 .73205081f ; // √3 sqrt3f
29
29
constexpr float inv_sqrtpi_f = 1 .77245385f ; // 1÷√π inv_sqrtpif
30
30
constexpr float inv_sqrt2_f = .707106781f ; // 1÷√2 M_SQRT1_2f inv_sqrt2f
31
- constexpr float div2_sqrtpi_f = 1 .12837917f ; // 2÷√π M_2_SQRTPIf
32
31
constexpr float inv_sqrt3_f = .577350269f ; // 1÷√3 inv_sqrt3f
32
+ constexpr float div2_sqrtpi_f = 1 .12837917f ; // 2÷√π M_2_SQRTPIf
33
33
34
34
// Type Name Value Operation GNU std::numbers
35
35
constexpr double phi_d = 1.6180339887498948482 ; // φ phi
@@ -54,8 +54,8 @@ namespace Math {
54
54
constexpr double sqrt3_d = 1.7320508075688772935 ; // √3 sqrt3
55
55
constexpr double inv_sqrtpi_d = 1.7724538509055160273 ; // 1÷√π inv_sqrtpi
56
56
constexpr double inv_sqrt2_d = .7071067811865475244 ; // 1÷√2 M_SQRT1_2 inv_sqrt2
57
- constexpr double div2_sqrtpi_d = 1.1283791670955125739 ; // 2÷√π M_2_SQRTPI
58
57
constexpr double inv_sqrt3_d = .57735026918962576451 ; // 1÷√3 inv_sqrt3
58
+ constexpr double div2_sqrtpi_d = 1.1283791670955125739 ; // 2÷√π M_2_SQRTPI
59
59
}
60
60
61
61
#endif // COMMON_MATH_CONSTANT_H_
Original file line number Diff line number Diff line change @@ -221,6 +221,8 @@ class _inv_sqrt3:
221
221
operation = "1÷√3"
222
222
def compute (): return fdiv (1 , sqrt (3 ))
223
223
224
+ constants .append (_inv_sqrt3 )
225
+
224
226
class _div2_sqrtpi :
225
227
name = "div2_sqrtpi"
226
228
gnu = "M_2_SQRTPI"
@@ -230,8 +232,6 @@ def compute(): return fdiv(2, sqrt(mp.pi))
230
232
231
233
constants .append (_div2_sqrtpi )
232
234
233
- constants .append (_inv_sqrt3 )
234
-
235
235
types = []
236
236
237
237
class _float :
You can’t perform that action at this time.
0 commit comments