def div(*args, **kwargs): q, r = poly_div(*_conv_args(2, args), **kwargs) if type(q) is not list: q = q.as_basic() else: q = [ p.as_basic() for p in q ] return q, r.as_basic()
def div(*args, **kwargs): q, r = poly_div(*_conv_args(2, args), **kwargs) if type(q) is not list: q = q.as_basic() else: q = [p.as_basic() for p in q] return q, r.as_basic()
def poly_rem(f, g, *symbols): """Wrapper for poly_div() """ return poly_div(f, g, *symbols)[1]
def poly_quo(f, g, *symbols): """Wrapper for poly_div() """ return poly_div(f, g, *symbols)[0]