We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 244188c + 3d0af3f commit 974f85dCopy full SHA for 974f85d
pixie/math.pxi
@@ -23,4 +23,19 @@
23
(i/defcfn ceil)
24
(i/defcfn fabs)
25
(i/defcfn floor)
26
- (i/defcfn fmod))
+ (i/defcfn fmod)
27
+
28
+ (i/defconst M_E) ; base of natural logarithm, e
29
+ (i/defconst M_LOG2E) ; log2(e)
30
+ (i/defconst M_LOG10E) ; log10(e)
31
+ (i/defconst M_LN2) ; ln(2)
32
+ (i/defconst M_LN10) ; ln(10)
33
+ (i/defconst M_PI) ; pi
34
+ (i/defconst M_PI_2) ; pi / 2
35
+ (i/defconst M_PI_4) ; pi / 4
36
+ (i/defconst M_1_PI) ; 1 / pi
37
+ (i/defconst M_2_PI) ; 2 / pi
38
+ (i/defconst M_2_SQRTPI) ; 2 / sqrt(pi)
39
+ (i/defconst M_SQRT2) ; sqrt(2)
40
+ (i/defconst M_SQRT1_2)) ; sqrt(1/2)
41
0 commit comments