Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to sort terms in symbolic expression of polynomial?

I have a symbolic expression in the following form

s =2*z^3 + z^2 + z

How can I tell sage to print s as the following form?

z + z^2 +  2*z^3