[Maxima] float(0.0b0) overflows?
Raymond Toy
raymond.toy at ericsson.com
Mon Jan 9 08:40:15 CST 2006
>>>>> "Raymond" == Raymond Toy <raymond.toy at ericsson.com> writes:
>>>>> "Robert" == Robert Dodier <robert.dodier at gmail.com> writes:
Raymond> The problem is in fp2flo in float.lisp and can be seen to be caused by
Raymond> clisp:
Raymond> (/ 0 (expt 2d0 53)) => 0 instead of 0d0.
[snip]
Raymond> This result is independent of *floating-point-contagion-ansi*.
Raymond> Sounds like a bug in clisp. An easy workaround is just cl:float the
Raymond> arg to scale-float.
Or setting custom:*floating-point-rational-contagion-ansi* to T. Then
(/ 0 1d0) => 0d0, as expected.
Ray
More information about the Maxima
mailing list