|
| int * | Add (int *a, int *b, int size) |
| |
| double | Ceil (double value, int precision=0) |
| |
| double | Deg2Rad (double a) |
| |
| int * | Div (int *a, int b, int size) |
| |
| int * | Div (int *a, int b, int *c, int size) |
| |
| double | FastCos (double x) |
| |
| double | FastSin (double x) |
| |
| bool | FloatIsEqual (const double a, const double b, const double epsilon=1e-10) |
| |
| double | Floor (double value, int precision=0) |
| |
| int | ipow (int base, int exponent) |
| | An integer pow-function. More...
|
| |
| int | log2upw (int value) |
| | calculates log_2, rounded upward More...
|
| |
| int | log8upw (int value) |
| | calculates log_8, rounded upward More...
|
| |
| double | Mod (double a, double b) |
| |
| double | Mod (double a, int b) |
| |
| int | Mod (int a, int b) |
| |
| long int | Mod (long int a, long int b) |
| |
| double | NormalizeAngleInDegreeSigned (const double angle) |
| |
| double | NormalizeAngleSigned (const double angle) |
| |
| double | NormalizeAngleUnsigned (const double angle) |
| |
| int | Pow (int a, int b) |
| |
| double | Rad2Deg (double a) |
| |
| double | RandomNormal (double variance) |
| |
| double | RandomUniform () |
| |
| double | RandomUniformAbs () |
| |
| double | Round (double value, int precision=0) |
| |
| int | Sgn (double a) |
| |
| int | Sgn (long double a) |
| |
| int | Sgn (long a) |
| |
| int | Sgn0 (double a) |
| |
| int | Sgn0 (long double a) |
| |
| int | Sgn0 (long a) |
| |
| void | SinCos (const double x, double &sx, double &cx) |
| |
| template<typename T > |
| T | Sqr (T a) |
| |
| double | Sqrt (double a) |
| |
| int * | Sum (int *a, int *b, int *c, int size) |
| |
Mathematical functions.
- Author
- Bernd Gaßmann
- Date
- 14.04.00
Defines often used mathematical functions with are not part of the GNU math library. math.h/math166.h/rt_math.h is included.
If the macro MATH_USE_PRECISE_OPS is defined, the standard precise versions of sin() and cos() are called. Otherwise fast versions are used, which use table lookup in the range [-2pi,2pi].
Definition in file OwnMath.h.