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

[Scheme-reports] More NaN and Infsanity

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

"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