FEDEM Solver  R8.0
Source code of the dynamics solver
Namespaces | Macros | Functions
FFaMath.H File Reference

Various math utility functions (extension of math.h). More...

#include <cmath>
Include dependency graph for FFaMath.H:
This graph shows which files directly or indirectly include this file:

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 *=0)
 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...
 

Detailed Description

Various math utility functions (extension of math.h).

Macro Definition Documentation

◆ EPS_ZERO

#define EPS_ZERO   1.0e-15

Division by zero tolerance.

◆ M_PI

#define M_PI   3.14159265358979323846

The value of the numerical constant π.

◆ RAD

#define RAD (   x)    (x)*M_PI/180.0

Degrees-to-Radians conversion.

Function Documentation

◆ atan3()

double atan3 ( double  y,
double  x,
const char *  = 0 
)
inline

Checks for singular rotations before using atan2 library function.

◆ round()

double round ( double  value,
int  precision 
)

Rounds off value down to precision significant digits.