|
FEDEM Model Database
R8.0
Source code of the FEDEM model database
|
Various math utilities. More...
Functions | |
| int | 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 | 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 utilities.
| int FFa::bilinearSolve | ( | const double * | A, |
| const double * | B, | ||
| double * | X, | ||
| double * | Y | ||
| ) |
Solves a bi-linear set of equations in X and Y.
The following set of equations are solved for the unknowns X and Y :
| [in] | A | Coefficients of the first equation |
| [in] | B | Coefficients of the second equation |
| [out] | X | Solution value(s) of the first unknown |
| [out] | Y | Solution value(s) of the second unknown |
| 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.
See K. Rottmann, "Matematische Formelsammlung" (1960), pp. 13-16 for details.
| [in] | A | Coefficient of the cubic term |
| [in] | B | Coefficient of the quadratic term |
| [in] | C | Coefficient of the linear term |
| [in] | D | The constant term |
| [out] | X | Solution(s) |