float(sin(2^2048))?



On 5/13/10 2:27 PM, Camm Maguire wrote:
> Greetings!
>
>
> Maxima 5.21.1 http://maxima.sourceforge.net
> using Lisp GNU Common Lisp (GCL) GCL 2.6.7 (a.k.a. GCL)
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> The function bug_report() provides bug reporting information.
> (%i1) :lisp (setq si::*print-nans* t)
>
> T
> (%i1) :lisp (float (expt 2 2049) 1.0e0)
>
> #<inf>
> (%i1) 
>
>
> To my understanding, we can't make this the default due to ansi
> compliance considerations.  But I'm not the language lawyer.
>   
I am not a language lawyer either, but AFAIK, the spec doesn't say
anything about infinities.  And FWIW, both cmucl and sbcl print out
something like #.single-float-positive-infinity.  (You might want to
make gcl at least print out what kind of infinity you have
(single/double) and maybe the sign, if it doesn't already.)

Ray