Re: 1. Formatted output in maxima.



in lisp, (fpformat XX)  gets you a list of characters
from a bigfloat. so you might do

(coerce (fpformat XX) 'string)

and then print it using ~a specification.
There are also ways of controlling how many digits are printed even
if there are trailing zeros, with some maxima flags.

RJF



Alexei Meremianin wrote:

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