

def dup_rr_lcm(f, g, 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 = ring("x", ZZ)\n\n    >>> R.dup_rr_lcm(x**2 - 1, x**2 - 3*x + 2)\n    x**3 - 2*x**2 - x + 2\n\n    '
    (fc, f) = dup_primitive(f, K)
    (gc, g) = dup_primitive(g, K)
    c = K.lcm(c, gc)
    h = dup_quo(dup_mul(f, g, K), dup_gcd(f, g, K), K)
    return dup_mul_ground(h, c, K)

dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py dup_rr_lcm/VarMisuse@48/194 `fc`->`c`