Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 4009 by randy.he...@clockworklab.net: Incorrect behaviour in simplify when used with And and Equality
http://code.google.com/p/sympy/issues/detail?id=4009

simplify(And(Equality(a, 2), c))
False

This is obviously incorrect, as the expression would become True if a is substituted for 2, and c is substituted for any nonzero value.

Even more interesting is the fully symbolic case:

simplify(And(Equality(a, b), c))
And(Or(Not(a), b), Or(Not(b), a), c)

This does not even match the earlier result, as substituting b for 2 reduces it to And(a, c), not False.

Using simplify with just And or just Equality seems to behave correctly.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy-issues+unsubscr...@googlegroups.com.
To post to this group, send email to sympy-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to