36 const scalar
a = this->
a();
37 const scalar
b = this->
b();
38 const scalar
c = this->
c();
48 const scalar numDiscr = fma(-
a,
c, w) + fma(
b,
b/4, -w);
49 const scalar discr = (
mag(numDiscr) > VSMALL) ? numDiscr : 0;
52 const bool twoReal = discr > 0;
53 const bool twoComplex = discr < 0;
Templated storage for the roots of polynomial equations, plus flags to indicate the nature of the roo...
Container to encapsulate various operations for linear equation of the forms with real coefficients:
Roots< 2 > roots() const
Return the roots of the quadratic equation with no particular order.
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)