

def dup_cancel(f, g, K, include=True):
    '\n    Cancel common factors in a rational function `f/g`.\n\n    Examples\n    ========\n\n    >>> from sympy.polys import ring, ZZ\n    >>> R, x = ring("x", ZZ)\n\n    >>> R.dup_cancel(2*x**2 - 2, x**2 - 2*x + 1)\n    (2*x + 2, x - 1)\n\n    '
    return dmp_cancel(f, K, 0, K, include=include)

dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py dup_cancel/VarMisuse@25/161 `g`->`K`