'Return True if ``elem`` is an element of this ideal.
>>> from sympy.abc import x
>>> from sympy import QQ
>>> QQ.old_poly_ring(x).ideal(x+1, x-1).contains(3)
True
>>> QQ.old_poly_ring(x).ideal(x**2, x**3).contains(x)
False'

def contains(self, elem):

    return self._contains_elem(self.ring.convert(elem))
