def lcm(self, a, b):

        try:
            ring = self.get_ring()
        except DomainError:
            return a*b

        p = ring.lcm(self.numer(a), self.numer(b))
        q = ring.gcd(self.denom(a), self.denom(b))

        return self.convert(p, ring)/q
Returns LCM of ``a`` and ``b``.
dataset/ETHPy150Open sympy/sympy/sympy/polys/domains/field.py/Field.lcm