Skip to content

Commit 59b560f

Browse files
committed
Merge pull request #458 from cgore/trig-functions
Adding a few missing trig functions.
2 parents d4fca1b + f991686 commit 59b560f

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

pixie/math.pxi

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,34 @@
44
(i/with-config {:library "m"
55
:cxx-flags ["-lm"]
66
:includes ["math.h"]}
7-
(i/defcfn acos)
7+
(i/defcfn sin)
8+
(i/defcfn cos)
9+
(i/defcfn tan)
10+
811
(i/defcfn asin)
12+
(i/defcfn acos)
913
(i/defcfn atan)
10-
(i/defcfn atan2)
11-
(i/defcfn cos)
12-
(i/defcfn cosh)
13-
(i/defcfn sin)
14+
(i/defcfn atan2) ; Arc tangent function of two variables.
15+
1416
(i/defcfn sinh)
17+
(i/defcfn cosh)
1518
(i/defcfn tanh)
19+
20+
(i/defcfn asinh)
21+
(i/defcfn acosh)
22+
(i/defcfn atanh)
23+
1624
(i/defcfn exp)
1725
(i/defcfn ldexp)
26+
1827
(i/defcfn log)
28+
(i/defcfn log2)
1929
(i/defcfn log10)
20-
;(i/defcfn modf) ;; Needs ffi support
30+
(i/defcfn log1p)
31+
(i/defcfn logb)
32+
(i/defcfn ilogb)
33+
34+
;; (i/defcfn modf) ;; Needs ffi support
2135
(i/defcfn pow)
2236
(i/defcfn sqrt)
2337
(i/defcfn ceil)

0 commit comments

Comments
 (0)