[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] Re: [Maxima] float to bfloat

From: Camm Maguire
Subject: Re: [Gcl-devel] Re: [Maxima] float to bfloat
Date: 30 Jan 2004 15:01:46 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2


Raymond Toy <address@hidden> writes:

> So as long as scale-float with the output of integer-decode-float
> produces the original infinity or NaN, then I guess everything is ok,
> and no error is an acceptable solution.  

This seems to be the case at present in GCL:

(defun mycheck (f) (multiple-value-bind (x y z) (integer-decode-float f) 
(multiple-value-bind (x1 y1 z1) (integer-decode-float (scale-float (float x) 
y)) (and (eql x x1) (eql y y1) (eql z z1)))))


>(mycheck (expt 9.9d0 9999))


>(mycheck (sin (expt 9.9d0 9999)))



(The first is +Inf, the second NaN)

Take care,

> Ray

Camm Maguire                                            address@hidden
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]