Comment #4 on issue 1894 by [email protected]: Xor(x, 1/y) doesn't work
http://code.google.com/p/sympy/issues/detail?id=1894
The same operator can have different meanings depending on the context.
In '1 & 2',
'&' means bitwise-and, not boolean-and as in 'x & y'. In contrast, 'And'
can only
have the boolean meaning, so it makes sense for 'And(...)' to return a
value in
circumstances where '&' is ambiguous. Now, And could inspect its arguments
and detect
that it's about to return a rather meaningless value, but this would impact
performance, and unnecessarily constrain the user thus violating
the "consenting
adults" philosophy. Hence the results you dislike.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.