6 #ifndef TPZPOLYNOMIAL_H 7 #define TPZPOLYNOMIAL_H 37 void SetCoef(
const REAL &c0,
const REAL &c1,
const REAL &c2,
const REAL &c3);
Implements a polynomial. Utility.
TPZVec< REAL > fReal
Roots of the polynomial.
void GetTolerance(REAL &tol)
Gets the tolerance value.
TPZVec< REAL > fCo
Polynomial coefficients.
Templated vector implementation.
void SetCoef(const REAL &c0, const REAL &c1, const REAL &c2, const REAL &c3)
Sets up four coefficients to polynomial.
REAL fTolerance
Tolerance value to computes.
TPZPolynomial()
Default constructor.
int SetRoots()
Computes the roots of the polynomial and stores into the fReal.
int GetRoots(const TPZVec< REAL > &coef, TPZVec< REAL > &r)
On given coefficients computes the roots of the polynomial in r.
void SetTolerance(const REAL &tol)
Sets the tolerance value to computes.
Contains declaration of the TPZNumeric class which implements several methods to calculation.
int Tartaglia(const TPZVec< REAL > &coef, TPZVec< REAL > &real, REAL &imagem)
Computes the roots of the cubic polynomial using Tartaglia method (until 3 degree) ...