[r6rs-discuss] Error in imag-part example?

Michael Sperber sperber at deinprogramm.de
Sun Mar 30 05:40:52 EDT 2008


"Llewellyn Pritchard" <leppie at wdsl.co.za> writes:

> The example shows the following:
>
> (imag-part 1.1+2.2i) => 2.2i ; approximately
>
> but
>
> the definition states:
>
> (imag-part z) returns a2
>
> where
>
> z = a1 + a2i
>
> So, should the imag-part return the value as a real or a complex? 2.2 or 
> 2.2i ?

2.2

This has actually been an erratum for a while, but hasn't propagated to
the web yet apparently.

Anton, could you post the current version?

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla



More information about the r6rs-discuss mailing list