

def dmp_ff_lcm(f, g, u, K):
    '\n    Computes polynomial LCM over a field in `K[X]`.\n\n    Examples\n    ========\n\n    >>> from sympy.polys import ring, QQ\n    >>> R, x,y, = ring("x,y", QQ)\n\n    >>> f = QQ(1,4)*x**2 + x*y + y**2\n    >>> g = QQ(1,2)*x**2 + x*y\n\n    >>> R.dmp_ff_lcm(f, g)\n    x**3 + 4*x**2*y + 4*x*y**2\n\n    '
    h = dmp_quo(dmp_mul(f, g, u, K), dmp_gcd(f, g, u, K), u, K)
    return dmp_ground_monic(h, u, K)

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