Making maxima not expand powers



One way would be to store strings,  "100^100"   in addition to the
numbers.  Sort by the numbers, but only print the strings.
RJF

----- Original Message -----
From: Henry Lenzi <henry.lenzi at gmail.com>
Date: Saturday, June 3, 2006 3:36 pm
Subject: Making maxima not expand powers

> Hi --
> 
> Here's my problem: I want to make a list made of huge numbers. Then,
> I want to sort it. I don't want maxima to expand powers (I want it too
> keep exponential notation, for readability.) Is ther a way?
> 
> (%i105) mylist:[100^100, 80^120,60^140,40^160,20^180];
> (%o105) 
> [100000000000000000000000000000000000000000000000000000000000000000000\000000000000000000000000000000000000000000000000000000000000000000000000000000\
> 000000000000000000000000000000000000000000000000000000, 
> 2348542582773833227889\480596789337027375682548908319870707290971532209025114608443463698998384768703\
> 031934976000000000000000000000000000000000000000000000000000000000000000000000\
> 000000000000000000000000000000000000000000000000000, 
> 8733233131762103459660808\345247639315496960772046833382089277314153013432419984814172138299868821906129\
> 944576000000000000000000000000000000000000000000000000000000000000000000000000\
> 00000000000000000000000000000000000000000000000000000000000000000000, 21359870\
> 359209100823950217061695521146027045223566527699470416078222197257806405500229\
> 620869365760000000000000000000000000000000000000000000000000000000000000000000\
> 000000000000000000000000000000000000000000000000000000000000000000000000000000\
> 000000000000000, 
> 1532495540865888858358347027150309183618739122183602176000000\000000000000000000000000000000000000000000000000000000000000000000000000000000\
> 000000000000000000000000000000000000000000000000000000000000000000000000000000\
> 000000000000000000]
> 
> 
> -------------------------------------------------------------------
> -------------------------------------------
> 
> 
> (%i106) sort(mylist);
> 
> -------------------------------------------------------------------
> --------------------------------------------
> 
> 
> 
> (%o106) 
> [100000000000000000000000000000000000000000000000000000000000000000000\000000000000000000000000000000000000000000000000000000000000000000000000000000\
> 000000000000000000000000000000000000000000000000000000, 
> 2348542582773833227889\480596789337027375682548908319870707290971532209025114608443463698998384768703\
> 031934976000000000000000000000000000000000000000000000000000000000000000000000\
> 000000000000000000000000000000000000000000000000000, 
> 1532495540865888858358347\027150309183618739122183602176000000000000000000000000000000000000000000000000\
> 000000000000000000000000000000000000000000000000000000000000000000000000000000\
> 000000000000000000000000000000000000000000000000000000, 
> 8733233131762103459660\808345247639315496960772046833382089277314153013432419984814172138299868821906\
> 129944576000000000000000000000000000000000000000000000000000000000000000000000\
> 00000000000000000000000000000000000000000000000000000000000000000000000, 21359\
> 870359209100823950217061695521146027045223566527699470416078222197257806405500\
> 229620869365760000000000000000000000000000000000000000000000000000000000000000\
> 000000000000000000000000000000000000000000000000000000000000000000000000000000\
> 000000000000000000]
> 
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>