[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Re: (gcd -2) -> -2
From: |
Neil Jerram |
Subject: |
[PATCH] Re: (gcd -2) -> -2 |
Date: |
Wed, 17 Sep 2008 22:53:54 +0200 |
2008/8/12 Mikael Djurfeldt <address@hidden>:
> 2008/8/12 Neil Jerram <address@hidden>:
>> 2008/8/12 Bill Schottstaedt <address@hidden>:
>>> gcd is supposed to ignore factors of -1.
>>
>> According to? (I'm not suggesting that you're wrong. I'd just like
>> you to be precise about your references.)
>
> R5RS:
>
> 6.2.5 Numerical operations
>
> -- library procedure: gcd n1 ...,
> -- library procedure: lcm n1 ...,
> These procedures return the greatest common divisor or least common
> multiple of their arguments. The result is always non-negative.
Patch is attached, for review.
Neil
0001-Fix-for-incorrect-gcd-2-2-should-give-2.patch
Description: Text Data
- [PATCH] Re: (gcd -2) -> -2,
Neil Jerram <=