'Rewrites univariate inequality in terms of real sets
Examples
>>> from sympy import Symbol, Eq
>>> x = Symbol(\'x\', real=True)
>>> (x > 0).as_set()
Interval.open(0, oo)
>>> Eq(x, 0).as_set()
{0}'

def as_set(self):

    from sympy.solvers.inequalities import solve_univariate_inequality
    syms = self.free_symbols
    if (len(syms) == 1):
        sym = syms.pop()
    else:
        raise NotImplementedError('Sorry,    Relational.as_set    procedure    is    not    yet    implemented    for    multivariate    expressions')
    return solve_univariate_inequality(self, sym, relational=False)
