muMECH  1.0
Public Member Functions | Static Public Member Functions | List of all members
mumech::polynomialRootSolution Class Reference

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)
 

Detailed Description

Class polynomialRootSolution collects functions calculating the roots of polynomial functions.

Definition at line 50 of file polynomialRootSolution.h.

Constructor & Destructor Documentation

mumech::polynomialRootSolution::polynomialRootSolution ( )
inline

Constructor.

Definition at line 54 of file polynomialRootSolution.h.

virtual mumech::polynomialRootSolution::~polynomialRootSolution ( )
inlinevirtual

Destructor.

Definition at line 56 of file polynomialRootSolution.h.

References GauHerQ(), GauLegF(), and GetCubicPolyRoots().

Member Function Documentation

void mumech::polynomialRootSolution::GauHerQ ( double *  x,
double *  w,
const int  nPoints 
)
static

Definition at line 178 of file polynomialRootSolution.cpp.

References _errorr, mumech::e(), and PI.

Referenced by ~polynomialRootSolution().

void mumech::polynomialRootSolution::GauLegF ( double *  x,
double *  w,
const int  nPoints,
const double  minLim,
const double  maxLim 
)
static
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.


The documentation for this class was generated from the following files: