[Scheme-reports] More NaN and Infsanity Peter Bex (28 Apr 2012 19:47 UTC)
Re: [Scheme-reports] More NaN and Infsanity John Cowan (28 Apr 2012 20:50 UTC)
Re: [Scheme-reports] More NaN and Infsanity Peter Bex (28 Apr 2012 21:05 UTC)
Re: [Scheme-reports] More NaN and Infsanity John Cowan (28 Apr 2012 21:14 UTC)

[Scheme-reports] More NaN and Infsanity Peter Bex 28 Apr 2012 19:43 UTC

Hi all,

I'm confused about the behaviour of some procedures with respect
to NaN and infinity.  In the report it's explicitly stated that the
comparison functions >, <, =, >= and <= should all return #f if any
of their arguments are +nan.0 but what should min and max return?

For example (max +inf.0 +nan.0), should this return +inf.0 (which
is the biggest number possible), or should it return +nan.0?

What should the value of the various trig functions be given nan/inf
values?

Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
							-- Donald Knuth

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports