99#ifndef Foam_cubicEqn_H
100#define Foam_cubicEqn_H
159 inline scalar
value(
const scalar
x)
const;
165 inline scalar
error(
const scalar
x)
const;
static const Foam::dimensionedScalar C("", Foam::dimTemperature, 234.5)
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
Graphite solid properties.
Templated storage for the roots of polynomial equations, plus flags to indicate the nature of the roo...
scalar c() const noexcept
components
Component labeling enumeration.
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
Roots< 3 > roots() const
Return the roots of the cubic equation with no particular order.
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 ...