Comment #2 on issue 4009 by [email protected]: Incorrect behaviour in
simplify when used with And and Equality
http://code.google.com/p/sympy/issues/detail?id=4009
You really should use Equivalent, which is the logical double implies
In [39]: simplify_logic(And(Equivalent(a, b), c))
Out[39]: c ∧ (a ∨ ¬ b) ∧ (b ∨ ¬ a)
In [40]: simplify(And(Equivalent(a, 2), c))
Out[40]: a ∧ c
But it should probably convert Equality to Equivalent for logical
simplification automatically.
I don't see how the fully symbolic case is wrong. a <=> b is the same as
[(a or not b) and (not a or b)] (for example, if a is true, the expression
reduces to just "b"; if a is false, it reduces to just "not b").
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.