(self)
Rewrite logic operators and relationals in terms of real sets.

        Examples
        ========

        >>> from sympy import Or, Symbol
        >>> x = Symbol('x', real=True)
        >>> Or(x>2, x<-2).as_set()
        (-oo, -2) U (2, oo)
Rewrite logic operators and relationals in terms of real sets.
Rewrite logic operators and relationals in terms of real sets .
def as_set(self):
        """
        Rewrite logic operators and relationals in terms of real sets.

        Examples
        ========

        >>> from sympy import Or, Symbol
        >>> x = Symbol('x', real=True)
        >>> Or(x>2, x<-2).as_set()
        (-oo, -2) U (2, oo)
        """
        from sympy.sets.sets import Union
        if len(self.free_symbols) == 1:
            return Union(*[arg.as_set() for arg in self.args])
        else:
            raise NotImplementedError("Sorry, Or.as_set has not yet been"
                                      " implemented for multivariate"
                                      " expressions")
def as_set ( self ) : from sympy . sets . sets import Union if len ( self . free_symbols ) == 1 : return Union ( * [ arg . as_set ( ) for arg in self . args ] ) else : raise NotImplementedError ( "Sorry, Or.as_set has not yet been" " implemented for multivariate" " expressions" )