On 8/24/10 10:24 AM, Jaime Villate wrote:
>
> 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
1d-7 is valid.
> 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
One way to enforce this is to use the exponent-char option to Lisp's ~f,
~e, ~g format printers:
(format t "~,,,,,,'eg" 1d-7) -> 1.0e-7.
Ray