|
FEDEM Solver
R8.0
Source code of the dynamics solver
|
Various math utility functions (extension of math.h). More...
#include <cmath>#include <cstddef>

Go to the source code of this file.
Namespaces | |
| FFa | |
| Various math utilities. | |
Macros | |
| #define | EPS_ZERO 1.0e-15 |
| Division by zero tolerance. More... | |
| #define | M_PI 3.14159265358979323846 |
| The value of the numerical constant π. More... | |
| #define | RAD(x) (x)*M_PI/180.0 |
| Degrees-to-Radians conversion. More... | |
Functions | |
| double | round (double value, int precision) |
| Rounds off value down to precision significant digits. More... | |
| double | atan3 (double y, double x, const char *=NULL) |
| Checks for singular rotations before using atan2 library function. More... | |
| int | FFa::cubicSolve (double A, double B, double C, double D, double *X) |
| Solves the cubic equation A*x3 + B*x2 + C*x + D = 0. More... | |
| int | FFa::bilinearSolve (const double *A, const double *B, double *X, double *Y) |
| Solves a bi-linear set of equations in X and Y. More... | |
Various math utility functions (extension of math.h).
| #define EPS_ZERO 1.0e-15 |
Division by zero tolerance.
| #define M_PI 3.14159265358979323846 |
The value of the numerical constant π.
| #define RAD | ( | x | ) | (x)*M_PI/180.0 |
Degrees-to-Radians conversion.
|
inline |
Checks for singular rotations before using atan2 library function.
| double round | ( | double | value, |
| int | precision | ||
| ) |
Rounds off value down to precision significant digits.