Template Function Utils::divide

Function Documentation

template<typename Real>
void Utils::divide(Poly<Real> const &p, Poly<Real> const &q, Poly<Real> &M, Poly<Real> &R)

Divide the polynomial \( p(x) \) by \( q(x) \) with remainder, i.e. \( p(x) = s(x)q(x)+r(x) \).