Mathematical functions. More...
Go to the source code of this file.
Classes | |
class | tSinCosLookupTable |
Functions | |
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. | |
int | log2upw (int value) |
calculates log_2, rounded upward | |
int | log8upw (int value) |
calculates log_8, rounded upward | |
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) |
Variables | |
tSinCosLookupTable | sin_cos_lookup_table |
Mathematical functions.
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.
int* Add | ( | int * | a, |
int * | b, | ||
int | size | ||
) | [inline] |
double Ceil | ( | double | value, |
int | precision = 0 |
||
) | [inline] |
double Deg2Rad | ( | double | a | ) | [inline] |
int* Div | ( | int * | a, |
int | b, | ||
int | size | ||
) | [inline] |
int* Div | ( | int * | a, |
int | b, | ||
int * | c, | ||
int | size | ||
) | [inline] |
bool FloatIsEqual | ( | const double | a, |
const double | b, | ||
const double | epsilon = 1e-10 |
||
) | [inline] |
double Floor | ( | double | value, |
int | precision = 0 |
||
) | [inline] |
int ipow | ( | int | base, |
int | exponent | ||
) | [inline] |
int log2upw | ( | int | value | ) | [inline] |
int log8upw | ( | int | value | ) | [inline] |
double Mod | ( | double | a, |
double | b | ||
) | [inline] |
double Mod | ( | double | a, |
int | b | ||
) | [inline] |
int Mod | ( | int | a, |
int | b | ||
) | [inline] |
long int Mod | ( | long int | a, |
long int | b | ||
) | [inline] |
double NormalizeAngleInDegreeSigned | ( | const double | angle | ) | [inline] |
double NormalizeAngleSigned | ( | const double | angle | ) | [inline] |
double NormalizeAngleUnsigned | ( | const double | angle | ) | [inline] |
int Pow | ( | int | a, |
int | b | ||
) | [inline] |
double Rad2Deg | ( | double | a | ) | [inline] |
double RandomNormal | ( | double | variance | ) | [inline] |
double RandomUniform | ( | ) | [inline] |
double RandomUniformAbs | ( | ) | [inline] |
double Round | ( | double | value, |
int | precision = 0 |
||
) | [inline] |
int Sgn | ( | double | a | ) | [inline] |
int Sgn | ( | long double | a | ) | [inline] |
int Sgn | ( | long | a | ) | [inline] |
int Sgn0 | ( | double | a | ) | [inline] |
int Sgn0 | ( | long double | a | ) | [inline] |
int Sgn0 | ( | long | a | ) | [inline] |
void SinCos | ( | const double | x, |
double & | sx, | ||
double & | cx | ||
) | [inline] |
double Sqrt | ( | double | a | ) | [inline] |
int* Sum | ( | int * | a, |
int * | b, | ||
int * | c, | ||
int | size | ||
) | [inline] |
Definition at line 39 of file OwnMath.cpp.