Comment #3 on issue 2453 by [email protected]: abs(sympy.I * sympy.pi)
evaluates incorrectly
http://code.google.com/p/sympy/issues/detail?id=2453
I digged a bit into this, and it seems related to assumptions not being
evaluated correctly in line 252 of complexes.py (Abs.eval):
if arg.is_positive: return arg
Caching can mask results, so one should be careful when testing:
In [1]: from sympy import *
In [2]: Abs(E*I)
Out[2]: E*I
But
In [1]: from sympy import *
In [2]: (E*I).is_positive
Out[2]: False
In [3]: Abs(E*I)
Out[3]: E
I'll try to narrow it down a little more.
--
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.