Polynomial templated on size (order): More...
Public Types | |
typedef Polynomial< PolySize > | polyType |
typedef Polynomial< PolySize+1 > | intPolyType |
Public Member Functions | |
Polynomial () | |
Polynomial (std::initializer_list< scalar > coeffs) | |
Polynomial (const scalar coeffs[PolySize]) | |
Polynomial (const UList< scalar > &coeffs) | |
Polynomial (Istream &is) | |
Polynomial (const word &name, Istream &is) | |
bool | logActive () const |
scalar | logCoeff () const |
scalar | value (const scalar x) const |
scalar | derivative (const scalar x) const |
scalar | integral (const scalar x1, const scalar x2) const |
intPolyType | integral (const scalar intConstant=0.0) const |
polyType | integralMinus1 (const scalar intConstant=0.0) const |
Polynomial templated on size (order):
poly = sum(coeffs[i]*x^i) + logCoeff*log(x)
where 0 <= i <= N
value(x)
to evaluate the poly for a given valuederivative(x)
returns derivative at valueintegral(x1, x2)
returns integral between two scalar valuesintegral()
to return a new, integral coeff polynomialintegralMinus1()
to return a new, integral coeff polynomial where the base poly starts at order -1Definition at line 64 of file Polynomial.H.
typedef Polynomial<PolySize> polyType |
Definition at line 90 of file Polynomial.H.
typedef Polynomial<PolySize+1> intPolyType |
Definition at line 91 of file Polynomial.H.
Polynomial | ( | ) |
Definition at line 27 of file Polynomial.C.
Polynomial | ( | std::initializer_list< scalar > | coeffs | ) |
Definition at line 36 of file Polynomial.C.
|
explicit |
Definition at line 60 of file Polynomial.C.
|
explicit |
Definition at line 74 of file Polynomial.C.
|
explicit |
Definition at line 96 of file Polynomial.C.
Polynomial | ( | const word & | name, |
Istream & | is | ||
) |
Definition at line 105 of file Polynomial.C.
bool logActive | ( | ) | const |
Definition at line 131 of file Polynomial.C.
Foam::scalar logCoeff | ( | ) | const |
Definition at line 138 of file Polynomial.C.
Foam::scalar value | ( | const scalar | x | ) | const |
Definition at line 145 of file Polynomial.C.
Foam::scalar derivative | ( | const scalar | x | ) | const |
Definition at line 167 of file Polynomial.C.
Foam::scalar integral | ( | const scalar | x1, |
const scalar | x2 | ||
) | const |
Definition at line 195 of file Polynomial.C.
intPolyType integral | ( | const scalar | intConstant = 0.0 | ) | const |
Foam::Polynomial< PolySize >::polyType integralMinus1 | ( | const scalar | intConstant = 0.0 | ) | const |
Definition at line 239 of file Polynomial.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.