rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

1e-12 printed as 0.0 10^-13 #417

Open rtoy opened 4 months ago

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 19:45:42 Created by r_mano on 2014-03-31 16:22:49 Original: https://sourceforge.net/p/maxima/bugs/2714


Problem:

(%i1) c:1e-12;
(%o1)                               0.0E-13
(%i2) c:1.1e-12;
(%o2)                               1.1E-12

then the variable c works correctly, but it is a bit surprising... This is out-of-the box maxima on:

-------------------------------------------------------------
Maxima version: "5.30.0"
Maxima build date: "2013-07-24 06:48:36"
Host type: "i686-pc-linux-gnu"
Lisp implementation type: "GNU Common Lisp (GCL)"
Lisp implementation version: "GCL 2.6.7"
-------------------------------------------------------------

Thank you!

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 19:45:43 Created by robert_dodier on 2014-04-01 18:20:53 Original: https://sourceforge.net/p/maxima/bugs/2714/#2887


rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 19:45:45 Created by r_mano on 2014-04-01 18:44:50 Original: https://sourceforge.net/p/maxima/bugs/2714/#3dc8


FWIW, in the (upcoming) Ubuntu 14.04 it is fixed. The strange thing is that maxima does not require the package GCL... is this embedded?

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 19:45:47 Created by robert_dodier on 2014-04-09 04:26:28 Original: https://sourceforge.net/p/maxima/bugs/2714/#5ee4


Maxima is compiled by GCL and the result is an executable image which contains all of GCL plus all of Maxima (that is very typical for Lisp applications). Maxima makes use of many functions in GCL, including the function which formats floats.