def revert(self, a):
        if self.is_one(a):
            return a
        else:
            raise NotReversible('only unity is reversible in a ring')
Returns ``a**(-1)`` if possible.
dataset/ETHPy150Open sympy/sympy/sympy/polys/domains/ring.py/Ring.revert