AnimaL |
Tutorial |
Documentation |
#include <numerics.h>
Defines numerical functions and constants.
Create or derive your own version to adapt class Numerics to a given type.
Not necessarily optimized for any type. Check yourself. Specializations exist for types float and double.
Definition at line 50 of file numerics.h.
Public Types | |
typedef int | Boolean |
Boolean value. | |
typedef double | Real |
Value returned by the numeric functions. | |
Static Public Member Functions | |
Real | PI () |
PI. | |
Real | CONV_RAD_TO_DEG () |
conversion from radian to degree degree = radian * CONV_RAD_TO_DEG() | |
Real | CONV_DEG_TO_RAD () |
conversion from degree to radain radian = degree * CONV_RAD_TO_DEG | |
Real | E () |
E = exp(1). | |
Miscellaneous numerical functions | |
Number | fpabs (Number k) |
Absolute value (floating point number). | |
Real | sqroot (Number k) |
Square root. | |
Real | sine (Number k) |
Sine. | |
Real | asine (Number k) |
Arc Sine. | |
Real | cosine (Number k) |
Cosine. | |
Real | acosine (Number k) |
Arc Cosine. | |
Real | tan (Number k) |
tan | |
Real | atan (Number k) |
Arc tan. | |
Real | e (Number k) |
Exponential. | |
Real | ln (Number k) |
Logarithm. | |
Real | power (Number k1, Number k2) |
Logarithm. | |
Real | prev_integer (Number a) |
return the first real round value lower than a | |
Real | next_integer (Number a) |
return the first real round value higher than a | |
Boolean | isfinite (Number k) |
Always true. | |
Real | numthreshold () |
Numerical threshold: arbitrary set to zero. |
|
Boolean value.
Definition at line 56 of file numerics.h. Referenced by animal::Numerics< Number >::isfinite(). |
|
Value returned by the numeric functions.
Definition at line 59 of file numerics.h. |
|
Arc Cosine.
Definition at line 103 of file numerics.h. |
|
Arc Sine.
Definition at line 97 of file numerics.h. |
|
Arc tan.
Definition at line 109 of file numerics.h. |
|
conversion from degree to radain radian = degree * CONV_RAD_TO_DEG
Definition at line 75 of file numerics.h. References animal::Numerics< Number >::PI(). |
|
conversion from radian to degree degree = radian * CONV_RAD_TO_DEG()
Definition at line 70 of file numerics.h. References animal::Numerics< Number >::PI(). |
|
Cosine.
Definition at line 100 of file numerics.h. |
|
Exponential.
Definition at line 112 of file numerics.h. |
|
E = exp(1).
Definition at line 79 of file numerics.h. |
|
Absolute value (floating point number).
Definition at line 88 of file numerics.h. |
|
Always true.
Definition at line 127 of file numerics.h. References animal::Numerics< Number >::Boolean. |
|
Logarithm.
Definition at line 115 of file numerics.h. |
|
return the first real round value higher than a
Definition at line 124 of file numerics.h. |
|
Numerical threshold: arbitrary set to zero.
Definition at line 130 of file numerics.h. |
|
|
Logarithm.
Definition at line 118 of file numerics.h. |
|
return the first real round value lower than a
Definition at line 121 of file numerics.h. |
|
Sine.
Definition at line 94 of file numerics.h. |
|
Square root.
Definition at line 91 of file numerics.h. |
|
tan
Definition at line 106 of file numerics.h. |