[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] *TELUS Detected Spam*Re: Fwd: Missing description of complex polar form
- To: scheme-reports@x
- Subject: Re: [Scheme-reports] *TELUS Detected Spam*Re: Fwd: Missing description of complex polar form
- From: Vincent Manis <vmanis@x>
- Date: Sun, 1 May 2011 07:28:05 -0700
- In-reply-to: <op.vus2gjjs0p3ku8@localhost>
- References: <631F8B9F-F6F2-4BD3-AEC3-F2A610D93D6C@telus.net> <6E8F2A39-DE68-4400-82A9-87A482539C2C@telus.net> <op.vus2gjjs0p3ku8@localhost>
On 2011-05-01, at 06:58, Aaron W. Hsu wrote:
> WRITE and NUMBER->STRING should both do this. Both are required to produce
> the external representation of a number. If a number is polar, then it's
> external representation is in the real@real notation, and you will get
> that form.
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?
utopia:~ vmanis$ gsi
Gambit v4.6.1
> 1@2
-.4161468365471424+.9092974268256817i
> (+ 2+3i 4@5)
3.134648741852905-.8356970986525538i
-- vincent
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports