[Scheme-reports] Complex gcd? Fredrik Noring (25 May 2014 20:36 UTC)
Re: [Scheme-reports] Complex gcd? John Cowan (25 May 2014 21:42 UTC)

Re: [Scheme-reports] Complex gcd? John Cowan 25 May 2014 21:38 UTC

Fredrik Noring scripsit:

> May I ask why R7RS seems to limit the gcd function to integers? I'm
> wondering since gcd extends to complex numbers,

It extends to Gaussian integers (complex numbers whose real and imaginary
parts are both integers), but there is no support for those in Scheme
except as a subset of the general complex numbers.

Writing a SRFI for Gaussian integers would be a Good Thing.

--
John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
Clear?  Huh!  Why a four-year-old child could understand this report.
Run out and find me a four-year-old child.  I can't make head or tail
out of it.        --Rufus T. Firefly on government reports

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