Updates:
        Status: Started

Comment #5 on issue 2425 by asmeurer: Pretty printing bug
http://code.google.com/p/sympy/issues/detail?id=2425

Amazingly, if you remove Add.as_coeff_mul() (so that it always just returns (S.One, self)), there is only one test failure other than a test testing the old behavior:

________________ sympy/core/tests/test_eval_power.py:test_zero _________________ File "/users/aaronmeurer/documents/python/sympy/sympy/sympy/core/tests/test_eval_power.py", line 159, in test_zero
    assert 0**(x - 2) == S.Infinity**(2 - x)
AssertionError

This is because the one is no longer transformed into the other, which is a good thing in my opinion (again, no more automatic sign manipulation). Unfortunately, this uncovers another pretty printing bug:


In [10]: print (S.Infinity**(2 - x))
(oo)**(-x + 2)

In [11]: (S.Infinity**(2 - x)).args
Out[11]: (∞, -x + 2)

In [12]: (S.Infinity**(2 - x))
Out[12]:
 x - 2
0

If I can figure out how to fix that (and if I don't find any other bugs), then a patch will be forthcoming soon.


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to