75#ifndef Foam_quadraticEqn_H
76#define Foam_quadraticEqn_H
127 inline scalar
value(
const scalar
x)
const;
133 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 quadratic equation at x.
scalar derivative(const scalar x) const
Evaluate the derivative of the quadratic equation at x.
scalar a() const noexcept
quadraticEqn()=default
Default construct.
Roots< 2 > roots() const
Return the roots of the quadratic equation with no particular order.
scalar b() const noexcept
scalar error(const scalar x) const
Estimate the error of evaluation of the quadratic equation at x.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...