muMECH
1.0
|
Class polynomialRootSolution collects functions calculating the roots of polynomial functions. More...
#include <polynomialRootSolution.h>
Public Member Functions | |
polynomialRootSolution () | |
Constructor. More... | |
virtual | ~polynomialRootSolution () |
Destructor. More... | |
std::complex< double > * | GetCubicPolyRoots (double a, double b, double c, std::complex< double > *roots) |
Function gives the analitical solution of cubic furmula of the real coefficients a, b, c x^3 + ax^2 + bx + c = 0. More... | |
std::complex< double > * | GetCubicPolyRoots (std::complex< double > a, std::complex< double > b, std::complex< double > c, std::complex< double > *roots) |
Function gives the analitical solution of cubic furmula of generally complex coefficients a, b, c; i.e. More... | |
Static Public Member Functions | |
static void | GauLegF (double *x, double *w, const int nPoints, const double minLim, const double maxLim) |
static void | GauHerQ (double *x, double *w, const int nPoints) |
Class polynomialRootSolution collects functions calculating the roots of polynomial functions.
Definition at line 50 of file polynomialRootSolution.h.
|
inline |
Constructor.
Definition at line 54 of file polynomialRootSolution.h.
|
inlinevirtual |
Destructor.
Definition at line 56 of file polynomialRootSolution.h.
References GauHerQ(), GauLegF(), and GetCubicPolyRoots().
|
static |
Definition at line 178 of file polynomialRootSolution.cpp.
References _errorr, mumech::e(), and PI.
Referenced by ~polynomialRootSolution().
|
static |
Definition at line 129 of file polynomialRootSolution.cpp.
References _errorr, mumech::CleanVector(), mumech::e(), and PI.
Referenced by mumech::eshelbySoluUniformField::giveSijkl(), and ~polynomialRootSolution().
std::complex< double > * mumech::polynomialRootSolution::GetCubicPolyRoots | ( | double | a, |
double | b, | ||
double | c, | ||
std::complex< double > * | roots | ||
) |
Function gives the analitical solution of cubic furmula of the real coefficients a, b, c x^3 + ax^2 + bx + c = 0.
Definition at line 54 of file polynomialRootSolution.cpp.
References ABS, CUB, PI, gelibspace::sgn(), and SQR.
Referenced by mumech::eshelbySoluLambda::giveLambda(), and ~polynomialRootSolution().
std::complex< double > * mumech::polynomialRootSolution::GetCubicPolyRoots | ( | std::complex< double > | a, |
std::complex< double > | b, | ||
std::complex< double > | c, | ||
std::complex< double > * | roots | ||
) |
Function gives the analitical solution of cubic furmula of generally complex coefficients a, b, c; i.e.
solution to: x^3 + ax^2 + bx + c = 0
Definition at line 87 of file polynomialRootSolution.cpp.
References _MACHINE_EPS_, _sgrt3div2_, ABS, CUB, PI, and SQR.