def dup_rr_lcm(f, g, K):
    fc, f = dup_primitive(f, K)
    gc, g = dup_primitive(g, K)

    c = K.lcm(fc, gc)

    h = dup_quo(dup_mul(f, g, K),
                dup_gcd(f, g, K), K)

    return dup_mul_ground(h, c, K)
Computes polynomial LCM over a ring in `K[x]`.
dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py/dup_rr_lcm