32 #ifndef MUMECH_POL_ROOTS_SOLU_H 33 #define MUMECH_POL_ROOTS_SOLU_H 41 #define _MACHINE_EPS_ 1E-100 42 #define _sgrt3div2_ 0.8660254037844386 61 std::complex<double> *
GetCubicPolyRoots(
double a,
double b,
double c, std::complex<double> * roots );
66 std::complex<double>*
GetCubicPolyRoots( std::complex<double> a, std::complex<double> b, std::complex<double> c,
67 std::complex<double>* roots );
70 static void GauLegF(
double *x,
double *w,
const int nPoints,
const double minLim,
const double maxLim);
71 static void GauHerQ(
double *x,
double *w,
const int nPoints);
77 #endif // end of MUMECH_POL_ROOTS_SOLU_H
polynomialRootSolution()
Constructor.
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.
static void GauLegF(double *x, double *w, const int nPoints, const double minLim, const double maxLim)
virtual ~polynomialRootSolution()
Destructor.
static void GauHerQ(double *x, double *w, const int nPoints)
Class polynomialRootSolution collects functions calculating the roots of polynomial functions...