46 this->v_[coefficient::a] = a;
49 this->v_[coefficient::d] = d;
57 return this->v_[coefficient::a];
75 return this->v_[coefficient::d];
81 return this->v_[coefficient::a];
99 return this->v_[coefficient::d];
105 return x*(
x*(
x*a() +
b()) +
c()) + d();
111 return x*(
x*3*a() + 2*
b()) +
c();
120 + small*(
mag(
x*(
x*(
x*a() +
b()) +
c())) +
mag(d()));
Cubic equation of the form a*x^3 + b*x^2 + c*x + d = 0.
cubicEqn()
Construct null.
scalar value(const scalar x) const
Evaluate at x.
scalar derivative(const scalar x) const
Evaluate the derivative at x.
scalar error(const scalar x) const
Estimate the error of evaluation at x.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
const dimensionedScalar c
Speed of light in a vacuum.
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensioned< scalar > magSqr(const dimensioned< Type > &)