55 #ifndef polynomialFunction_H 56 #define polynomialFunction_H 68 class polynomialFunction;
70 Istream&
operator>>(Istream&, polynomialFunction& poly);
71 Ostream&
operator<<(Ostream&,
const polynomialFunction& poly);
97 const scalar intConstant = 0
105 const scalar intConstant = 0
109 void checkSize()
const;
152 using scalarList::operator[];
167 scalar
value(
const scalar
x)
const;
170 scalar
integrate(
const scalar x1,
const scalar x2)
const;
177 const scalar intConstant = 0
184 const scalar intConstant = 0
polynomialFunction & operator/=(const scalar)
polynomialFunction & operator+=(const polynomialFunction &)
TypeName("polynomialFunction")
Runtime type information.
friend Istream & operator>>(Istream &, polynomialFunction &poly)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
polynomialFunction()
Default construct as size 1 with coefficient == 0.
polynomialFunction integralMinus1(const scalar intConstant=0) const
Return integral coefficients when lowest order is -1.
friend Ostream & operator<<(Ostream &, const polynomialFunction &poly)
scalar integrate(const scalar x1, const scalar x2) const
Integrate between two values.
polynomialFunction integral(const scalar intConstant=0) const
Return integral coefficients.
Istream & operator>>(Istream &, directionInfo &)
polynomialFunction & operator*=(const scalar)
Polynomial function representation.
scalar value(const scalar x) const
Return polynomial value.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual ~polynomialFunction()=default
Destructor.
scalar logCoeff() const
The log coefficient.
bool operator==(const polynomialFunction &rhs) const
Equality of coefficients, and logCoeff (if active)
bool logActive() const
True if the log term is active.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
bool operator!=(const polynomialFunction &rhs) const
polynomialFunction & operator-=(const polynomialFunction &)
label size() const noexcept
The number of elements in the UList.
Macros to ease declaration of run-time selection tables.