Re: [Scheme-reports] *TELUS Detected Spam*Re: Fwd: Missing description of complex polar form Aaron W. Hsu (02 May 2011 14:24 UTC)

Re: [Scheme-reports] *TELUS Detected Spam*Re: Fwd: Missing description of complex polar form Aaron W. Hsu 02 May 2011 14:24 UTC

On Sun, 01 May 2011 10:28:05 -0400, Vincent Manis <vmanis@telus.net> wrote:

> I don't understand this. Polar and rectangular are external
> representations, are they not?  Does a Scheme implementation have to
> flag complex numbers by their representation? What happens when you mix
> the two kinds of numbers?

It does not have to, a Scheme implementation can choose any valid
representation for the number when it wants to convert an internal
representation to an external one, such as what happens with `write' and
`number->string'. So, the behavior of using the complex notation all the
time instead of the polar is legal. On the other hand, an implementation
could track these things and use the polar representation if it so desired.

	Aaron W. Hsu

--
Programming is just another word for the lost art of thinking.

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