

def dup_lcm(f, g, K):
    '\n    Computes polynomial LCM of `f` and `g` in `K[x]`.\n\n    Examples\n    ========\n\n    >>> from sympy.polys import ring, ZZ\n    >>> R, x = ring("x", ZZ)\n\n    >>> R.dup_lcm(x**2 - 1, x**2 - 3*x + 2)\n    x**3 - 2*x**2 - x + 2\n\n    '
    if K.has_Field:
        return dup_ff_lcm(f, g, K)
    else:
        return dup_rr_lcm(f, g, K)

dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py dup_lcm/original