

def dup_ff_lcm(f, g, 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 = ring("x", QQ)\n\n    >>> f = QQ(1,2)*x**2 + QQ(7,4)*x + QQ(3,2)\n    >>> g = QQ(1,2)*x**2 + x\n\n    >>> R.dup_ff_lcm(f, g)\n    x**3 + 7/2*x**2 + 3*x\n\n    '
    h = dup_quo(dup_mul(f, g, K), dup_gcd(f, g, K), K)
    return dup_monic(h, K)

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