40 if (coefficients.size() == 0) {
87 for (std::size_t j = 0; j <= poly.
maxXorder_m; j ++) {
88 newPoly[i + j] = newPoly[i + j] +
112 for (std::size_t i = 0; i <= poly.
maxXorder_m; i++) {
118 const std::size_t &order) {
void multiplyPolynomial(const Polynomial &poly)
void addPolynomial(const Polynomial &poly)
std::vector< int > coefficients_m
double evaluatePolynomial(const double &x) const
void printPolynomial() const
void setCoefficient(const int &coefficient, const std::size_t &order)
void differentiatePolynomial()
Polynomial & operator=(const Polynomial &poly)