(f, g)
return per(q), per(r)
Polynomial division with remainder of ``f`` and ``g``.
Polynomial division with remainder of ``f`` and ``g``.
Polynomial division with remainder of f and g .
def div(f, g):
        """Polynomial division with remainder of ``f`` and ``g``. """
        lev, dom, per, F, G = f.unify(g)
        q, r = dmp_div(F, G, lev, dom)
        return per(q), per(r)
def div ( f , g ) : lev , dom , per , F , G = f . unify ( g ) q , r = dmp_div ( F , G , lev , dom ) return per ( q ) , per ( r )