printing of floating point numbers and integers in Maxima



I get the following error:

(%i46) load("/home/milan/maxima_stuff/contrib/nnformat.lisp");
WARNING: DEFUN/DEFMACRO: redefining function NFORMAT in
         /home/milan/maxima_stuff/contrib/nnformat.lisp, was defined
in
         /home/milan/maxima-5.12.99rc1/src/binary-clisp/nforma.fas
Maxima encountered a Lisp error:


GET: (SIMPLE-BASE-STRING 46) is not a symbol

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.

My Lisp is clisp-2.41.

Milan

* Richard Fateman <fateman at cs.berkeley.edu> [2007-12-18 16:51:59 -0800]:

> 
> Here's what a new version of nformat provides.
> 
> floatformat
> integerformat
> 
>  are variables set to directives for formatting common lisp numbers in the
> display.
> 
> The default format for each is "~s", but can be changed as follows:
> 
> floatformat:"~e"  ;  uses  ... E notation.  You can also set it to "~5,4e"
> which uses 5 digits, 4 after the decimal.
> 
> integerformat:"~r"  prints integers in English, e.g. "four hundred one"
> integerformat:"~@r" prints integers in Roman numerals, e.g. CDI for 401.
> 
> You can see binary by integerformat:"~b"
> Or other bases.
> 
> Bigfloats are not affected.
> 
> And yes, the sizes of objects work fine. Try
> matrix([1,2,3],[4,5,6],[7,8,9])^^2;
> look at the result with integerformat:"~r".
> Then change to "~b" and look at the result again.
> 
> 
> 
> 
> 
> The code is also cleaned up, some. Perhaps a kind soul will test it out and
> install it if it works?
> It belongs in nformat.lisp.
> 
> To try it out, download it to your computer and load it in to your xmaxima,
> wxmaxima, etc.
> 
> RJF
> 
> http://www.cs.berkeley.edu/~fateman/generic/nnformat.lisp
> 
>  
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima

--