'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()
Union(Interval.open(-oo, -2), Interval.open(2, oo))'

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')
