1. Formatted output in maxima; 2. rearray does not work.



Hello,

I want to output some formatted data (numbers) to a file.
Just need the same as printf does in C - i.e. control the length of mantissa,
put some newlines etc.
How to do that in maxima?
(print and display commands cannot do the job).

Another question is about rearray.
----------------------------------------------------------
(%i3) array(x,4);
(%o3) 				       x
(%i4) rearray (x,5);
Maxima encountered a Lisp error:

 LENGTH: 5 is not a SEQUENCE

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
(%i5) 
----------------------------------------------------------

What's wrong?

-- 
with best regards,
 Alexei Meremianin

-------------------------------------------------------
 Research Fellow,
 Max Planck Institute for the Physics of Complex Systems,
 Noethnitzer Str 38, 01187 Dresden, Germany,
   Phone: +49 351 871-2411
   Fax: +49 351 871-1999