Created
January 12, 2016 16:26
-
-
Save edw/87a4e234a33b5a1e0377 to your computer and use it in GitHub Desktop.
IEEE math for Pixie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns pixie.math | |
| (require pixie.ffi-infer :refer :all)) | |
| (with-config {:library "m" | |
| :cxx-flags ["-lm"] | |
| :includes ["math.h"]} | |
| (defconst M_E) | |
| (defconst M_LOG2E) | |
| (defconst M_LOG10E) | |
| (defconst M_LN2) | |
| (defconst M_LN10) | |
| (defconst M_PI) | |
| (defconst M_PI_2) | |
| (defconst M_PI_4) | |
| (defconst M_1_PI) | |
| (defconst M_2_PI) | |
| (defconst M_2_SQRTPI) | |
| (defconst M_SQRT2) | |
| (defconst M_SQRT1_2) | |
| (defcfn nan) | |
| (defcfn ceil) | |
| (defcfn floor) | |
| (defcfn nearbyint) | |
| (defcfn rint) | |
| (defcfn lround) | |
| (defcfn llrint) | |
| (defcfn llround) | |
| (defcfn trunc) | |
| (defcfn fmod) | |
| (defcfn remainder) | |
| (defcfn remquo) | |
| (defcfn fdim) | |
| (defcfn fmax) | |
| (defcfn fmin) | |
| (defcfn fma) | |
| (defcfn fabs) | |
| (defcfn sqrt) | |
| (defcfn cbrt) | |
| (defcfn hypot) | |
| (defcfn exp) | |
| (defcfn exp2) | |
| (defcfn exp10) | |
| (defcfn expm1) | |
| (defcfn log) | |
| (defcfn log2) | |
| (defcfn log10) | |
| (defcfn log1p) | |
| (defcfn logb) | |
| (defcfn ilogb) | |
| (defcfn modf) | |
| (defcfn frexp) | |
| (defcfn ldexp) | |
| (defcfn scalbn) | |
| (defcfn scalbln) | |
| (defcfn pow) | |
| (defcfn cos) | |
| (defcfn sin) | |
| (defcfn tan) | |
| (defcfn cosh) | |
| (defcfn sinh) | |
| (defcfn tanh) | |
| (defcfn acos) | |
| (defcfn asin) | |
| (defcfn atan) | |
| (defcfn atan2) | |
| (defcfn acosh) | |
| (defcfn asinh) | |
| (defcfn atanh) | |
| (defcfn tgamma) | |
| (defcfn lgamma) | |
| (defcfn j0) | |
| (defcfn j1) | |
| (defcfn jn) | |
| (defcfn y0) | |
| (defcfn y1) | |
| (defcfn yn) | |
| (defcfn erf) | |
| (defcfn erfc)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment