Re: [sage-support] About collect-function

2012-11-02 Thread Michael Orlitzky
On 11/01/2012 03:58 AM, Jori Mantysalo wrote: > For example > > (x^5 + x^2+ (5*a)*x^3).collect(x) > > returns > > x^5 + 5*a*x^3 + x^2 > > as I expected, but > > (x^5 + x^2+ (5*a)*x^3 + (10*a^2 + 6*a + 5)*x).collect(x) > > returns > > x^5 + 5*a*x^3 + (10*a^2 + 6*a + 5)*x + x^2 > > How to ord

[sage-support] About collect-function

2012-11-01 Thread Jori Mantysalo
For example (x^5 + x^2+ (5*a)*x^3).collect(x) returns x^5 + 5*a*x^3 + x^2 as I expected, but (x^5 + x^2+ (5*a)*x^3 + (10*a^2 + 6*a + 5)*x).collect(x) returns x^5 + 5*a*x^3 + (10*a^2 + 6*a + 5)*x + x^2 How to order polynomial as "normal", i.e. descending exponents of x? * * * Documentati