55 return x*(
x*(
x*
a() +
b()) +
c()) +
d();
61 return x*(
x*3*
a() + 2*
b()) +
c();
70 + SMALL*(
mag(
x*(
x*(
x*a() +
b()) + c())) +
mag(d()));
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
static const cubicEqn zero
scalar c() const noexcept
scalar value(const scalar x) const
Evaluate the cubic equation at x.
cubicEqn()=default
Default construct.
scalar derivative(const scalar x) const
Evaluate the derivative of the cubic equation at x.
scalar d() const noexcept
scalar a() const noexcept
scalar b() const noexcept
scalar error(const scalar x) const
Estimate the error of evaluation of the cubic equation at x.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)