Go to the documentation of this file.
50 #ifndef polynomialFunction_H
51 #define polynomialFunction_H
63 class polynomialFunction;
66 Ostream&
operator<<(Ostream&,
const polynomialFunction&);
93 const scalar intConstant = 0.0
101 const scalar intConstant = 0.0
141 using scalarList::operator[];
157 scalar
value(
const scalar
x)
const;
160 scalar
integrate(
const scalar x1,
const scalar x2)
const;
167 const scalar intConstant = 0.0
174 const scalar intConstant = 0.0
polynomialFunction integralMinus1(const scalar intConstant=0.0) const
Return integral coefficients when lowest order is -1.
polynomialFunction integral(const scalar intConstant=0.0) const
Return integral coefficients.
TypeName("polynomialFunction")
Runtime type information.
virtual ~polynomialFunction()
Destructor.
static polynomialFunction cloneIntegral(const polynomialFunction &, const scalar intConstant=0.0)
Return integral coefficients.
bool logActive_
Include the log term? - only activated using integralMinus1()
scalar integrate(const scalar x1, const scalar x2) const
Integrate between two values.
polynomialFunction & operator*=(const scalar)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
scalar logCoeff() const
Return the log coefficient.
Ostream & operator<<(Ostream &, const edgeMesh &)
scalar logCoeff_
Log coefficient - only activated using integralMinus1()
scalar value(const scalar x) const
Return polynomial value.
label size() const
Return the number of elements in the UList.
static polynomialFunction cloneIntegralMinus1(const polynomialFunction &, const scalar intConstant=0.0)
Return integral coefficients when lowest order is -1.
void operator=(const polynomialFunction &)
Disallow default bitwise assignment.
polynomialFunction & operator+=(const polynomialFunction &)
Macros to ease declaration of run-time selection tables.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
polynomialFunction & operator-=(const polynomialFunction &)
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 polynomialFunction &)
Ostream Operator.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
polynomialFunction & operator/=(const scalar)
Polynomial function representation.
bool logActive() const
Return true if the log term is active.
polynomialFunction(const label)
Construct a particular size, with all coefficients = 0.0.