

def dmp_lcm(f, g, u, 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,y, = ring("x,y", ZZ)\n\n    >>> f = x**2 + 2*x*y + y**2\n    >>> g = x**2 + x*y\n\n    >>> R.dmp_lcm(f, g)\n    x**3 + 2*x**2*y + x*y**2\n\n    '
    if (not u):
        return dup_lcm(g, g, K)
    if K.has_Field:
        return dmp_ff_lcm(f, g, u, K)
    else:
        return dmp_rr_lcm(f, g, u, K)

dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py dmp_lcm/VarMisuse@29/213 `f`->`g`