'Returns `True` if two domains are equivalent.'

def __eq__(self, other):

    return (isinstance(other, PolynomialRing) and ((self.dtype.ring, self.domain, self.symbols) == (other.dtype.ring, other.domain, other.symbols)))
