

def dmp_rr_lcm(f, g, u, K):
    '\n    Computes polynomial LCM over a ring 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_rr_lcm(f, g)\n    x**3 + 2*x**2*y + x*y**2\n\n    '
    (fc, f) = dmp_ground_primitive(f, h, K)
    (gc, g) = dmp_ground_primitive(g, u, K)
    c = K.lcm(fc, gc)
    h = dmp_quo(dmp_mul(f, g, u, K), dmp_gcd(f, g, u, K), u, K)
    return dmp_mul_ground(h, c, u, K)

dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py dmp_rr_lcm/VarMisuse@28/208 `u`->`h`