Go to the documentation of this file.
60 #include <initializer_list>
61 #include <type_traits>
75 template<
int PolySize>
78 public VectorSpace<Polynomial<PolySize>, scalar, PolySize>
80 static_assert(PolySize > 0,
"Size must be positive (non-zero)");
108 Polynomial(std::initializer_list<scalar> coeffs);
111 explicit Polynomial(
const scalar coeffs[PolySize]);
137 scalar
value(
const scalar
x)
const;
143 scalar
integral(
const scalar x1,
const scalar x2)
const;
polyType integralMinus1(const scalar intConstant=0.0) const
A class for handling words, derived from Foam::string.
Polynomial< PolySize > polyType
scalar derivative(const scalar x) const
scalar integral(const scalar x1, const scalar x2) const
Polynomial< PolySize+1 > intPolyType
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
scalar value(const scalar x) const
Polynomial templated on size (order):
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
word name(const expressions::valueTypeCode typeCode)