ndlopes at gmail.com wrote:
> Well my real problem is:
> how to print, in a readable way, really long expressions produced by maxima?
>
The solution is probably this:
Do not produce really long expressions.
See the breakup flag, which is used by solve.
You can, if you wish, take a long expression and break it up into pieces
and display each one separately.
How about this, for a sum of lots of terms. You can insert other stuff
if you want, and you can make the
program much more elaborate. This assumes you have a sum, or maybe a
product. It also does not try to
line up stuff, and does not do any computing about sizes at all.
m:ratsimp((x+y)^20);
tex_in_parts(s,n):=
block([size:length(s)], for i:1 step n thru size do tex(
part(s,makelist(k,k,i,min(i+n,size)))));
tex_in_parts(m,5);
RJF