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

Not(And(x>2, x<3)) does not evaluate #10240

Closed
smichr opened this Issue Dec 11, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@smichr
Copy link
Member

smichr commented Dec 11, 2015

>>> Not(And(x>2,x<3)).as_set()
<bound method Interval.complement of (2, 3)>
>>> simplify(Not(And(x>2,x<3)))
Or(x <= 2, x >= 3)
>>> _.as_set()
(-oo, 2] U [3, oo)

@smichr smichr referenced this issue Dec 11, 2015

Merged

minor fixes #10242

@asmeurer

This comment has been minimized.

Copy link
Member

asmeurer commented Dec 11, 2015

Why does it return a method?

skirpichev added a commit to skirpichev/diofant that referenced this issue Jun 27, 2016

Add a regression test for sympy/sympy#10240
Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>

skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 16, 2016

Add a regression test for sympy/sympy#10240
Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>

skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 17, 2016

Add a regression test
Closes sympy/sympy#10240

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>

skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 17, 2016

Add a regression test
Closes sympy/sympy#10240

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment