[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Scheme-reports] result of (infinite? +nan.0+inf.0i)
- To: scheme-reports <scheme-reports@x>
- Subject: [Scheme-reports] result of (infinite? +nan.0+inf.0i)
- From: Per Bothner <per@x>
- Date: Tue, 10 Sep 2013 00:06:18 -0700
What should be the result of (infinite? +nan.0+inf.0i)?
The report says #t but that seems undesirable, because
it would mean that finite?/infinite?/nan? would no
longer be a partitioning of the complex numbers,
since both nan? and infinite? are true.
The wording is "The infinite? procedure returns #t ...
on complex numbers if their real and imaginary parts
or both are infinite". I think we should add "and
neither is +nan.0"".
(I wouldn't find a link to the errata page.)
Scheme-reports mailing list