Comment #7 on issue 4009 by srjoglek...@gmail.com: Incorrect behaviour in simplify when used with And and Equality
http://code.google.com/p/sympy/issues/detail?id=4009

Yup. Predicates aren't handled well in sympy.logic for now. And fixing this would mean fixing simplify_logic only, since simplify calls simplify_logic for all logic-related stuff.
One ad-hoc fix would be to use

e = Symbol('e')
simplify_logic(And(e, c)).subs({e : Equality(a, 2)})
And(a == 2, c)

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