[Maxima] floating point numbers format

Giovanni giovannibis at inwind.it
Sat Jun 13 08:31:41 CDT 2009

  giovedì 11 giugno 2009, 13:53, Richard Fateman:

> load into your maxima:
> http://www.cs.berkeley.edu/~fateman/lisp/hackform.lisp
> [...]
> format_for_numbers: "~R"
>     which will make 23  print like twenty-three

  Thanks for replaying. Your suggestion it's quite useful, but i've
found some problems. I've tried with

format_for_numbers: "~,2F"


- 1/333 is printed as 0.00 I'd like to have printed as 0.3*10^-2 (more
generally, it should print 0 only if it's really 0)

- every number follows the above defined rule. I mean, x^2 it's printed
as x^2.00 or 1/2 as 1.00/2.00

- trying to plot a function like f(x):=a*x - b* x^2/2 i've got the
following message (and no plot):

Maxima encountered a Lisp error:
EVAL: undefined function MINUS
Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.

I'm using
Maxima version: 5.16.3
Maxima build date: 12:31 11/5/2008
host type: i386-redhat-linux-gnu
lisp-implementation-type: CLISP
lisp-implementation-version: 2.46 (2008-07-02) (built on


More information about the Maxima mailing list