75 ,
const double &Coeff1
76 ,
const double &Coeff0
108 ,
double *Diff )
const 139 ,
double *Root2)
const 143 double b0 = this->
a0 / this->
a2 144 , b1 = this->
a1 / this->
a2 145 , SquareRootTerm = 0.25 *
pow2(b1) - b0;
147 if (SquareRootTerm < 0.0)
161 *Root1 = - 0.5 * b1 + SquareRootTerm + this->
DeltaT;
162 *Root2 = - 0.5 * b1 - SquareRootTerm + this->
DeltaT;
170 *Root1 = - this->
a0 / this->
a1 + this->
DeltaT;
double a0
Parameter of the polynomial function .
unsigned int Degree
Positive integer number that defines the degree of the current polynomial.
TypeIIRMLPolynomial(void)
Constructor of the class TypeIIRMLPolynomial.
double DeltaT
Parameter of the polynomial function .
Header file for functions and definitions of constant values and macros.
double RMLSqrt(const double &Value)
Calculates the real square root of a given value. If the value is negative a value of almost zero wil...
Header file for the class TypeIIRMLMath::TypeIIRMLPolynomial and the struct TypeIIRMLMath::MotionPoly...
#define pow2(A)
A to the power of 2.
void SetCoefficients(const double &Coeff2, const double &Coeff1, const double &Coeff0, const double &Diff)
Sets the coefficients of the polynomial object.
~TypeIIRMLPolynomial(void)
Destructor of the class TypeIIRMLPolynomial.
double a1
Parameter of the polynomial function .
double a2
Parameter of the polynomial function .
void CalculateRealRoots(unsigned int *NumberOfRoots, double *Root1, double *Root2) const
Calculates the real roots of the polynomial specified by the attributes of this object.
void GetCoefficients(double *Coeff2, double *Coeff1, double *Coeff0, double *Diff) const
Returns the coefficients of the polynomial object.
double CalculateValue(const double &t) const
Calculates the function value at of the polynomial specified by the attributes of this object...