value_type |
Alias for template parameter T |
result_type |
Alias for template parameter T |
iterator |
Read/write iterator over the list of coefficients. |
const_iterator |
Read-only iterator over the list of coefficients. |
Derivative |
A polynomial of the type of the derivative of this polynomial. This
is a Polynomial of degree n-1, except when n already is zero. |
Polynomial() |
Default constructor, does not initialize coefficients. |
template <typename Iterator>
Polynomial(Iterator begin, Iterator end) |
Constructor, coefficients are initialized with values in the
range begin to end. The coefficent at begin corresponds
to the coefficient of the zero-degree term. |
T operator()(T x) const |
Evaluate the polynomial at x. |
T &operator[](const std::size_t i) |
Returns a reference to the coefficient of the term x^i. |
const T &operator[](const std::size_t i) |
Returns the coefficient of the term x^i. |
iterator begin() |
Returns an iterator to the range of coefficients. |
iterator end() |
Returns an iterator ending the range of coefficients. |
const_iterator const begin() |
Returns a const_iterator to the range of coefficients. |
const_iterator const end() |
Returns a const_iterator ending the range of coefficients. |
Derivative derivative() const |
Returns a new Polynomial that is the derivative of this polynomial. |