def monomial_gcd(A, B):
    return tuple([ min(a, b) for a, b in zip(A, B) ])
Greatest common divisor of tuples representing monomials.
dataset/ETHPy150Open sympy/sympy/sympy/polys/monomials.py/monomial_gcd