[Patch] Fix for Geomview



On Tue, 2010-08-24 at 13:58 +0200, Juan M. Bello Rivas wrote:
> The problem appears to stem from the fact that
> *read-default-float-format* is set to 'double-float in the version
> built with make whereas its value is 'single-float in the other
> built. 
You're right; thanks for finding that out.

(%i1) :lisp (setf *read-default-float-format* 'DOUBLE-FLOAT);
DOUBLE-FLOAT
(%i1) 1e-7;
(%o1) 1.e-7
(%i2) :lisp (setf *read-default-float-format* 'SINGLE-FLOAT);
SINGLE-FLOAT
(%i2) 1e-7;
(%o2) 1.d-7

I don't know whether the current Maxima policy considers "1.d-7" a valid
number or not. If it does, we then have a bug in plot.lisp because 1.d-7
should be printed as 1.e-7 before sending it to the External plotting
program. If 1.d-7 should not be valid in Maxima, we should probably have
a test to make sure that 1.e-7 is not converted into 1.d-7

Regards,
Jaime