def monomial_lcm(A, B):
    return tuple([ max(a, b) for a, b in zip(A, B) ])
Least common multiple of tuples representing monomials.
dataset/ETHPy150Open sympy/sympy/sympy/polys/monomials.py/monomial_lcm