Comment #3 on issue 1894 by mattpap: Xor(x, 1/y) doesn't work
http://code.google.com/p/sympy/issues/detail?id=1894

how do you compute 1/True and 1/False?

In [1]: 1/True
Out[1]: 1.0

In [2]: 1/False
ZeroDivisionError: float division

I just expect this two inputs should give the same result:

In [7]: 1/y & ~x
TypeError: unsupported operand type(s) for &: 'Pow' and 'Not'

In [8]: And(1/y, ~x)
Out[8]:
      1
¬ x ∧ ─
      y

(an expression or raise an exception). I don't mind Xor(x, 1/y) raising an exception.

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

Reply via email to