Re: 1. Formatted output in maxima.



Thanks to Richard Fateman for his suggestion (slightly modified here),
-----------------------------------------------------------
(%i7) :lisp (defun $my_formatted_output(a) (format t "~%~10,8f~% I am a new line~%"  a))
$MY_FORMATTED_OUTPUT
(%i7) my_formatted_output (4.4);

4.40000000
 I am a new line
(%o7) 				     false
(%i8) 
------------------------------------------------------------
Does not work with bigfloats.
How to handle that case?

Alexei Meremianin <avm at mpipks-dresden.mpg.de> writes:

> 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).

-- 
with best regards,
 Alexei Meremianin