[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



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