(self, symbol)
return Or(*[Eq(symbol, elem) for elem in self])
Rewrite a FiniteSet in terms of equalities and logic operators.
Rewrite a FiniteSet in terms of equalities and logic operators.
Rewrite a FiniteSet in terms of equalities and logic operators .
def as_relational(self, symbol):
        """Rewrite a FiniteSet in terms of equalities and logic operators. """
        from sympy.core.relational import Eq
        return Or(*[Eq(symbol, elem) for elem in self])
def as_relational ( self , symbol ) : from sympy . core . relational import Eq return Or ( * [ Eq ( symbol , elem ) for elem in self ] )