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