[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gcl-devel] Re: [Maxima] float to bfloat
From: |
Raymond Toy |
Subject: |
Re: [Gcl-devel] Re: [Maxima] float to bfloat |
Date: |
Fri, 23 Jan 2004 11:22:49 -0500 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.5 (celeriac, usg-unix-v) |
>>>>> "Camm" == Camm Maguire <address@hidden> writes:
Camm> I don't think this is the case:
My apologies. I didn't test it. I used to have problems with gcl's
float reader/printer, but I guess you've fixed those. Nice!
Camm> OK, will consider after Stavros gets a chance to look into things next
Camm> week. Thanks again to all!
FWIW, I ran your test function on cmucl. It passes the test case
(test-f 1d0 10). Also, there were a couple of minor bugs. float
should take the 2nd arg, otherwise it converts to single-float be
default. This was messing up cmucl. :-)
(defun test-f (x i)
(multiple-value-bind
(q r s)
(integer-decode-float x)
(format t "~S~%" x)
(and (eql x (float (* q (expt 2 r)) x))
(eql (float (rationalize x) x) x)
(if (> i 0)
(test-f (float (* (+ q 1) (expt 2 r)) x) (- i 1))
t))))
Ray
- [Gcl-devel] Re: [Maxima] float to bfloat, Camm Maguire, 2004/01/23
- [Gcl-devel] Re: [Maxima] float to bfloat, Raymond Toy, 2004/01/23
- Re: [Gcl-devel] Re: [Maxima] float to bfloat, Camm Maguire, 2004/01/23
- Re: [Gcl-devel] Re: [Maxima] float to bfloat,
Raymond Toy <=
- Re: [Gcl-devel] Re: [Maxima] float to bfloat, Camm Maguire, 2004/01/26
- Re: [Gcl-devel] Re: [Maxima] float to bfloat, Richard Fateman, 2004/01/26
- Re: [Gcl-devel] Re: [Maxima] float to bfloat, Camm Maguire, 2004/01/26
- RE: [Gcl-devel] Re: [Maxima] float to bfloat, Stavros Macrakis, 2004/01/26
- Re: [Gcl-devel] Re: [Maxima] float to bfloat, Camm Maguire, 2004/01/30
- Re: [Gcl-devel] Re: [Maxima] float to bfloat, Raymond Toy, 2004/01/30
- Re: [Gcl-devel] Re: [Maxima] float to bfloat, Richard Fateman, 2004/01/30
- Re: [Gcl-devel] Re: [Maxima] float to bfloat, Raymond Toy, 2004/01/30
- Re: [Gcl-devel] Re: [Maxima] float to bfloat, Camm Maguire, 2004/01/30
- Re: [Gcl-devel] Re: [Maxima] float to bfloat, Steve Haflich, 2004/01/30