Status: Accepted
Owner: asmeurer
CC: [email protected]
Labels: Type-Enhancement Priority-Medium Printing Polynomial

New issue 2628 by asmeurer: Pretty pint RootSum
http://code.google.com/p/sympy/issues/detail?id=2628

Maple prints its equivalent of RootSum objects as a summation. Here is an example with the ASCII printer:

integrate(1/(x**5 + x + 1), x);
/ ----- 2 \ 1/2 | \ (5 - 4 _R + _R ) ln(x - _R)| 2 1/2 (2 x + 1) 3 1/7 | ) ---------------------------| - 1/14 ln(x + x + 1) + 5/21 3 arctan(--------------) | / 2 | 3 | ----- 3 _R - 2 _R | \_R = %1 /

3 2 %1 := RootOf(_Z - _Z + 1)

I think we should do this too. Print it as a summation, with the lower index as _i = RootOf, or even better, write it as _x | _x**3 - _x + 1 = 0. This is the mathematical notation. For example, see the equation at the bottom of the page just above the algorithm box on page 54 of Bronstein's book (http://books.google.com/books?id=8SAaSd89sSkC&lpg=PA49&pg=PA52#v=onepage&q&f=false).

This would make RootSums way easier to read.

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