예제 #1
0
 Polynomial<Internal::max<degin,deg>::value> operator-(const Polynomial<degin> &poly) const
 {
     Polynomial<Internal::max<degin,deg>::value> p;
     p.coefficients().tail(deg+1) = coef;
     p.coefficients().tail(degin+1) -= poly.coefficients();
     return p;
 }
예제 #2
0
 Polynomial<degin+deg> operator*(const Polynomial<degin> &poly) const
 {
     Polynomial<degin+deg> p;
     Internal::PolyConv<deg,degin>::compute(p.coefficients(),coef,poly.coefficients());
     return p;
 }