[Scheme-reports] Numerical example (real? -2.5+0.0i) Jussi Piitulainen (15 Aug 2011 07:46 UTC)
Re: Numerical example (real? -2.5+0.0i) Aubrey Jaffer (15 Aug 2011 16:06 UTC)

[Scheme-reports] Numerical example (real? -2.5+0.0i) Jussi Piitulainen 15 Aug 2011 07:45 UTC

An example in July draft 6.2.5 shows (real? -2.5+0.0i) as #t. The text
above the examples says (real? z) if and only if (zero? (imag-part z))
and (exact? (imag-part z)). The imag-part is clearly not exact.

Would (real? -2.5+0i) => #t work, or does the decimal point in the
real-part make the imag-part also inexact? How about -2+0i?

Perhaps it is best to just change the value of the test to #f, or
strike the whole example.

I notice also that one of the z's in that text is in italics and two
are in fixed width.

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