52 #ifndef polynomialFunction_H 53 #define polynomialFunction_H 65 class polynomialFunction;
68 Ostream&
operator<<(Ostream&,
const polynomialFunction&);
95 const scalar intConstant = 0.0
103 const scalar intConstant = 0.0
159 scalar
value(
const scalar
x)
const;
162 scalar
integrate(
const scalar x1,
const scalar x2)
const;
169 const scalar intConstant = 0.0
176 const scalar intConstant = 0.0
201 const polynomialFunction&
205 polynomialFunction
operator-
207 const polynomialFunction&,
208 const polynomialFunction&
212 polynomialFunction
operator*
215 const polynomialFunction&
219 polynomialFunction
operator/
222 const polynomialFunction&
226 polynomialFunction
operator*
228 const polynomialFunction&,
233 polynomialFunction
operator/
235 const polynomialFunction&,
polynomialFunction & operator/=(const scalar)
polynomialFunction & operator+=(const polynomialFunction &)
polynomialFunction integral(const scalar intConstant=0.0) const
Return integral coefficients.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
friend Ostream & operator(Ostream &, const UList< T > &)
TypeName("polynomialFunction")
Runtime type information.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
polynomialFunction(const label)
Construct a particular size, with all coefficients = 0.0.
scalar integrate(const scalar x1, const scalar x2) const
Integrate between two values.
polynomialFunction & operator*=(const scalar)
Polynomial function representation.
scalar value(const scalar x) const
Return polynomial value.
friend Ostream & operator<<(Ostream &, const polynomialFunction &)
Ostream Operator.
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...
scalar logCoeff() const
Return the log coefficient.
bool logActive() const
Return true if the log term is active.
polynomialFunction & operator-=(const polynomialFunction &)
polynomialFunction integralMinus1(const scalar intConstant=0.0) const
Return integral coefficients when lowest order is -1.
Ostream & operator<<(Ostream &, const ensightPart &)
Macros to ease declaration of run-time selection tables.
virtual ~polynomialFunction()
Destructor.
label size() const
Return the number of elements in the UList.