Making maxima not expand powers



By default, "sort" sorts using orderlessp:

      sort([2,3,4,%pi,%e,x^2,x^2+1,x^-2])
           => [2,3,4,x^2+1,%e,%pi,x^2,x^-2]

To sort by numerical value, use sort(..., "<").  Of course, in the above
example, it would return an error, since it does not know whether 2<x^2,
etc.

           -s


On 6/4/06, van Nek <van.nek at arcor.de> wrote:
>
> > sort (mylist);
> >   => [20^180, 40^160, 60^140, 80^120, 100^100]




floating the above result shows that the answer isn't correct.
>
> (%i1) float( [20^180, 40^160, 60^140, 80^120, 100^100], fpprec:1 );
> (%o1)          [1.5E+234, 2.1E+256, 8.7E+248, 2.3E+228, 1.E+200]
>
> I am not sure if sorting does work correctly without simplification.
>