The following behavior is not what I want or expect for the ordering
of terms when Sage displays a polynomial:

sage: 1-x
1 - x
sage: 1+x
x + 1
sage: 1-x^2
1 - x^2
sage: 1+x^2
x^2 + 1
sage: 1+x-x^2
-x^2 + x + 1
sage: 1+x+x^2
x^2 + x + 1

Is there some way to let Sage know that I'd prefer a consistent
ordering of the terms in a polynomial?  I mean, without working in
some other ring?

I look forward to the day when Sage can keep track of the order of the
approximation when multiplying and dividing Taylor series.  Meanwhile,
I appreciate that Sage displays the terms in the expected order.  But,
why does it abandon this when putting the series into a matrix?

sage: var('x')
sage: a=taylor((1+x)^3,x,0,2); a
1 + 3*x + 3*x^2
sage: matrix([[a]])
[3*x^2 + 3*x + 1]

It hasn't always been this way.  The above is from a Sage 2.9.1
notebook.  From a notebook on another machine running Sage 2.9, I get
this:

sage: var('x')
sage: a=taylor((1+x)^3,x,0,2); a
1 + 3*x + 3*x^2
sage: matrix([[a]])
[1 + 3*x + 3*x^2]

Cheers,

Peter Doyle


--~--~---------~--~----~------------~-------~--~----~
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/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to