Max 5 API Reference
|
Functions | |
| double | jit_math_cos (double x) |
| Calculates the cosine. | |
| double | jit_math_sin (double x) |
| Calculates the sine. | |
| double | jit_math_tan (double x) |
| Calculates the tangent. | |
| double | jit_math_acos (double x) |
| Calculates the arccosine. | |
| double | jit_math_asin (double x) |
| Calculates the arcsine. | |
| double | jit_math_atan (double x) |
| Calculates the arctangent. | |
| double | jit_math_atan2 (double y, double x) |
| Calculates the four quadrant arctangent. | |
| double | jit_math_cosh (double x) |
| Calculates the hyperbolic cosine. | |
| double | jit_math_sinh (double x) |
| Calculates the hyperbolic sine. | |
| double | jit_math_tanh (double x) |
| Calculates the hyperbolic tangent. | |
| double | jit_math_acosh (double x) |
| Calculates the hyperbolic arccosine. | |
| double | jit_math_asinh (double x) |
| Calculates the hyperbolic arcsine. | |
| double | jit_math_atanh (double x) |
| Calculates the hyperbolic arctangent. | |
| double | jit_math_exp (double x) |
| Calculates the exponent. | |
| double | jit_math_expm1 (double x) |
| Calculates the exponent minus 1. | |
| double | jit_math_exp2 (double x) |
| Calculates the exponent base 2. | |
| double | jit_math_log (double x) |
| Calculates the logarithm. | |
| double | jit_math_log2 (double x) |
| Calculates the logarithm base 2. | |
| double | jit_math_log10 (double x) |
| Calculates the logarithm base 10. | |
| double | jit_math_hypot (double x, double y) |
| Calculates the hypotenuse. | |
| double | jit_math_pow (double x, double y) |
| Calculates x raised to the y power. | |
| double | jit_math_sqrt (double x) |
| Calculates the square root. | |
| double | jit_math_ceil (double x) |
| Calculates the ceiling. | |
| double | jit_math_floor (double x) |
| Calculates the floor. | |
| double | jit_math_round (double x) |
| Rounds the input. | |
| double | jit_math_trunc (double x) |
| Truncates the input. | |
| double | jit_math_fmod (double x, double y) |
| Calculates the floating point x modulo y. | |
| double | jit_math_fold (double x, double lo, double hi) |
| Calculates the fold of x between lo and hi. | |
| double | jit_math_wrap (double x, double lo, double hi) |
| Calculates the wrap of x between lo and hi. | |
| double | jit_math_j1_0 (double x) |
| Calcuates the j1_0 Bessel function. | |
| double | jit_math_p1 (double x) |
| Calcuates the p1 Bessel function. | |
| double | jit_math_q1 (double x) |
| Calcuates the q1 Bessel function. | |
| double | jit_math_j1 (double x) |
| Calcuates the j1 Bessel function. | |
| unsigned long | jit_math_roundup_poweroftwo (unsigned long x) |
| Rounds up to the nearest power of two. | |
| long | jit_math_is_finite (float v) |
| Checks if input is finite. | |
| long | jit_math_is_nan (float v) |
| Checks if input is not a number (NaN). | |
| long | jit_math_is_valid (float v) |
| Checks if input is both finite and a number. | |
| long | jit_math_is_poweroftwo (long x) |
| Checks if input is a power of two. | |
| float | jit_math_fast_sqrt (float n) |
| Calculates the square root by fast approximation. | |
| float | jit_math_fast_invsqrt (float x) |
| Calculates the inverse square root by fast approximation. | |
| float | jit_math_fast_sin (float x) |
| Calculates the sine by fast approximation. | |
| float | jit_math_fast_cos (float x) |
| Calculates the cosine by fast approximation. | |
| float | jit_math_fast_tan (float x) |
| Calculates the tangent by fast approximation. | |
| float | jit_math_fast_asin (float x) |
| Calculates the arcsine by fast approximation. | |
| float | jit_math_fast_acos (float x) |
| Calculates the arccosine by fast approximation. | |
| float | jit_math_fast_atan (float x) |
| Calculates the arctangent by fast approximation. | |
| double jit_math_acos | ( | double | x | ) |
Calculates the arccosine.
| x | input |
Definition at line 79 of file jit.math.c.
| double jit_math_acosh | ( | double | x | ) |
Calculates the hyperbolic arccosine.
| x | input |
Definition at line 178 of file jit.math.c.
| double jit_math_asin | ( | double | x | ) |
Calculates the arcsine.
| x | input |
Definition at line 93 of file jit.math.c.
| double jit_math_asinh | ( | double | x | ) |
Calculates the hyperbolic arcsine.
| x | input |
Definition at line 192 of file jit.math.c.
| double jit_math_atan | ( | double | x | ) |
Calculates the arctangent.
| x | input |
Definition at line 107 of file jit.math.c.
| double jit_math_atan2 | ( | double | y, | |
| double | x | |||
| ) |
Calculates the four quadrant arctangent.
| y | input | |
| x | input |
Definition at line 122 of file jit.math.c.
| double jit_math_atanh | ( | double | x | ) |
Calculates the hyperbolic arctangent.
| x | input |
Definition at line 206 of file jit.math.c.
| double jit_math_ceil | ( | double | x | ) |
Calculates the ceiling.
| x | input |
Definition at line 348 of file jit.math.c.
| double jit_math_cos | ( | double | x | ) |
Calculates the cosine.
| x | input |
Definition at line 37 of file jit.math.c.
Referenced by jit_math_j1().
| double jit_math_cosh | ( | double | x | ) |
Calculates the hyperbolic cosine.
| x | input |
Definition at line 136 of file jit.math.c.
| double jit_math_exp | ( | double | x | ) |
Calculates the exponent.
| x | input |
Definition at line 220 of file jit.math.c.
| double jit_math_exp2 | ( | double | x | ) |
Calculates the exponent base 2.
| x | input |
Definition at line 248 of file jit.math.c.
| double jit_math_expm1 | ( | double | x | ) |
Calculates the exponent minus 1.
| x | input |
Definition at line 234 of file jit.math.c.
| float jit_math_fast_acos | ( | float | x | ) |
Calculates the arccosine by fast approximation.
Absolute error of 6.8e-05 for [0, 1]
| x | input |
Definition at line 1044 of file jit.math.c.
References jit_math_sqrt().

| float jit_math_fast_asin | ( | float | x | ) |
Calculates the arcsine by fast approximation.
Absolute error of 6.8e-05 for [0, 1]
| x | input |
Definition at line 1019 of file jit.math.c.
References jit_math_sqrt().

| float jit_math_fast_atan | ( | float | x | ) |
Calculates the arctangent by fast approximation.
Absolute error of 1.43-08 for [-1, 1]
| x | input |
Definition at line 1069 of file jit.math.c.
| float jit_math_fast_cos | ( | float | x | ) |
Calculates the cosine by fast approximation.
Absolute error of 1.2e-03 for [0, PI/2]
| x | input |
Definition at line 966 of file jit.math.c.
| float jit_math_fast_invsqrt | ( | float | x | ) |
Calculates the inverse square root by fast approximation.
| x | input |
Definition at line 908 of file jit.math.c.
| float jit_math_fast_sin | ( | float | x | ) |
Calculates the sine by fast approximation.
Absolute error of 1.7e-04 for [0, PI/2]
| x | input |
Definition at line 943 of file jit.math.c.
| float jit_math_fast_sqrt | ( | float | n | ) |
Calculates the square root by fast approximation.
| n | input |
Definition at line 887 of file jit.math.c.
| float jit_math_fast_tan | ( | float | x | ) |
Calculates the tangent by fast approximation.
Absolute error of 1.9e-00 for [0, PI/4]
| x | input |
Definition at line 988 of file jit.math.c.
| double jit_math_floor | ( | double | x | ) |
| double jit_math_fmod | ( | double | x, | |
| double | y | |||
| ) |
Calculates the floating point x modulo y.
| x | input | |
| y | input |
Definition at line 405 of file jit.math.c.
| double jit_math_fold | ( | double | x, | |
| double | lo, | |||
| double | hi | |||
| ) |
Calculates the fold of x between lo and hi.
| x | input | |
| lo | lower bound | |
| hi | upper bound |
Definition at line 446 of file jit.math.c.
| double jit_math_hypot | ( | double | x, | |
| double | y | |||
| ) |
Calculates the hypotenuse.
| x | input | |
| y | input |
Definition at line 305 of file jit.math.c.
| long jit_math_is_finite | ( | float | v | ) |
Checks if input is finite.
| v | input |
Definition at line 760 of file jit.math.c.
Referenced by jit_math_is_valid().
| long jit_math_is_nan | ( | float | v | ) |
Checks if input is not a number (NaN).
| v | input |
Definition at line 778 of file jit.math.c.
Referenced by jit_math_is_valid().
| long jit_math_is_poweroftwo | ( | long | x | ) |
Checks if input is a power of two.
| x | input |
Definition at line 810 of file jit.math.c.
| long jit_math_is_valid | ( | float | v | ) |
Checks if input is both finite and a number.
| v | input |
Definition at line 796 of file jit.math.c.
References jit_math_is_finite(), and jit_math_is_nan().

| double jit_math_j1 | ( | double | x | ) |
Calcuates the j1 Bessel function.
| x | input |
Definition at line 705 of file jit.math.c.
References jit_math_cos(), jit_math_j1_0(), jit_math_p1(), jit_math_q1(), and jit_math_sin().

| double jit_math_j1_0 | ( | double | x | ) |
Calcuates the j1_0 Bessel function.
| x | input |
Definition at line 557 of file jit.math.c.
Referenced by jit_math_j1().
| double jit_math_log | ( | double | x | ) |
Calculates the logarithm.
| x | input |
Definition at line 262 of file jit.math.c.
| double jit_math_log10 | ( | double | x | ) |
Calculates the logarithm base 10.
| x | input |
Definition at line 290 of file jit.math.c.
| double jit_math_log2 | ( | double | x | ) |
Calculates the logarithm base 2.
| x | input |
Definition at line 276 of file jit.math.c.
| double jit_math_p1 | ( | double | x | ) |
Calcuates the p1 Bessel function.
| x | input |
Definition at line 609 of file jit.math.c.
Referenced by jit_math_j1().
| double jit_math_pow | ( | double | x, | |
| double | y | |||
| ) |
Calculates x raised to the y power.
| x | input | |
| y | input |
Definition at line 320 of file jit.math.c.
| double jit_math_q1 | ( | double | x | ) |
Calcuates the q1 Bessel function.
| x | input |
Definition at line 657 of file jit.math.c.
Referenced by jit_math_j1().
| double jit_math_round | ( | double | x | ) |
| unsigned long jit_math_roundup_poweroftwo | ( | unsigned long | x | ) |
Rounds up to the nearest power of two.
| x | input |
Definition at line 740 of file jit.math.c.
| double jit_math_sin | ( | double | x | ) |
Calculates the sine.
| x | input |
Definition at line 51 of file jit.math.c.
Referenced by jit_math_j1().
| double jit_math_sinh | ( | double | x | ) |
Calculates the hyperbolic sine.
| x | input |
Definition at line 150 of file jit.math.c.
| double jit_math_sqrt | ( | double | x | ) |
Calculates the square root.
| x | input |
Definition at line 334 of file jit.math.c.
Referenced by jit_math_fast_acos(), and jit_math_fast_asin().
| double jit_math_tan | ( | double | x | ) |
Calculates the tangent.
| x | input |
Definition at line 65 of file jit.math.c.
| double jit_math_tanh | ( | double | x | ) |
Calculates the hyperbolic tangent.
| x | input |
Definition at line 164 of file jit.math.c.
| double jit_math_trunc | ( | double | x | ) |
| double jit_math_wrap | ( | double | x, | |
| double | lo, | |||
| double | hi | |||
| ) |
Calculates the wrap of x between lo and hi.
| x | input | |
| lo | lower bound | |
| hi | upper bound |
Definition at line 497 of file jit.math.c.