On 12/14/11 5:11 AM, Marijn wrote:
(gcd-rational 2/3 2/3 2/3)
2/3
(lcm-rational 2/3 2/3 2/3)
4/9
is that 4/9 the intended result?
No, I must've messed up the definition. Fortunately, Matthew did the
right thing when he implemented lcm:
Welcome to Racket v5.2.0.6.
> (lcm 2/3 2/3 2/3)
2/3
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 09-12-11 20:04, Jens Axel Søgaard wrote:
> One definition of greatest common divisor in a ring R is: d is a
> greatest common divisor of x and y when: i) d divides both x and
> y ii) If e is a divisor of both x and y, then d divides e
I think you
2 matches
Mail list logo