If you have a single variable polynomial you must specify the variable in the sort command when using the ascending and descending option.  Ascending or descending will not work without it.  It's obvious you need to express it with more than one variable but for single variables it should not be needed.

As a simple example.   b:=x+x^3+x^2;

Sort(b)  gives x^3+x^2+x and sort(b,ascending) gives the same answer as does Sort(b,descending)

The only way to get the sort function to work is to explicitly define the variable to be sorted, even if it's only a single variable.  Sort(b,[x],ascending)  will give x+x^2+x^3

Maplesoft should refine this in a future update of Maple.  Maple should be able to pick up any single variable polynomials and associate any commands to that single variable and not have to explicitly express it in the command line. 

 

 

"Finding bugs makes things better for the future" 


Please Wait...