Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bool, relational: added as_set method #2781

Merged
merged 1 commit into from Jan 19, 2014
Merged

bool, relational: added as_set method #2781

merged 1 commit into from Jan 19, 2014

Commits on Jan 18, 2014

  1. bool, relational: added as_set method

    `as_set` is the inverse method for existing `as_relational`
    method for sets. `as_set` converts a univariate boolean or
    relational expression to real set.
    
    Example:
    
    In [1]: from sympy import And, Or
    
    In [2]: from sympy.abc import x
    
    In [3]: And(x<2, x>-2).as_set()
    Out[3]: (-2, 2)
    
    In [4]: (x**2 > 4).as_set()
    Out[4]: (-oo, -2) U (2, oo)
    hargup committed Jan 18, 2014
    Configuration menu
    Copy the full SHA
    f81a123 View commit details
    Browse the repository at this point in the history