47#ifndef Foam_linearEqn_H
48#define Foam_linearEqn_H
97 inline scalar
value(
const scalar
x)
const;
103 inline scalar
error(
const scalar
x)
const;
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
Templated storage for the roots of polynomial equations, plus flags to indicate the nature of the roo...
linearEqn()=default
Default construct.
components
Component labeling enumeration.
scalar value(const scalar x) const
Evaluate the linear equation at x.
scalar derivative(const scalar x) const
Evaluate the derivative of the linear equation at x.
scalar a() const noexcept
Roots< 1 > roots() const
Return the real root of the linear equation.
scalar b() const noexcept
scalar error(const scalar x) const
Estimate the error of evaluation of the linear equation at x.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...