29 #ifndef POLYNOMIAL_INCLUDED
30 #define POLYNOMIAL_INCLUDED
39 template<
int Degree >
48 double integral(
double tMin ,
double tMax )
const;
91 void getSolutions(
double c,std::vector<double>& roots,
double EPS)
const;
101 #include "polynomial.hpp"
Polynomial & operator+=(const Polynomial &p)
static void Negate(const Polynomial &in, Polynomial &out)
Polynomial scale(double s) const
Polynomial< Degree+1 > integral(void) const
Polynomial shift(double t) const
void getSolutions(double c, std::vector< double > &roots, double EPS) const
double operator()(double t) const
int operator!=(const Polynomial &p) const
static void AddScaled(const Polynomial &p1, double w1, const Polynomial &p2, double w2, Polynomial &q)
static void Scale(const Polynomial &p, double w, Polynomial &q)
Polynomial operator-(void) const
Polynomial< Degree-1 > derivative(void) const
Polynomial & operator/=(double s)
Polynomial & operator=(const Polynomial< Degree2 > &p)
Polynomial & operator*=(double s)
Polynomial & operator-=(const Polynomial &p)
Polynomial operator/(double s) const
double coefficients[Degree+1]
int operator==(const Polynomial &p) const
static void Subtract(const Polynomial &p1, const Polynomial &p2, Polynomial &q)
static Polynomial BSplineComponent(int i)
Polynomial & addScaled(const Polynomial &p, double scale)
Polynomial operator+(const Polynomial &p) const
Polynomial< Degree+Degree2 > operator*(const Polynomial< Degree2 > &p) const