Boost logo

Boost Users :

Subject: Re: [Boost-users] [rational] proposed gcd and lcm for rational
From: Scott McMurray ([hidden])
Date: 2011-07-22 16:10:09

On Thu, Jul 21, 2011 at 17:29, Thomas Taylor <thomas.taylor_at_[hidden]> wrote:
> Especially a lcm makes sense in my opinion, [...]
> The gcd is certainly trickier as it appears to me to be less intuitive.

I think that once you have one, you don't have to think about the other.

I'd be very confused if the implementation didn't always satisfy
    GCD(a, b) * LCM(a, b) = a * b

~ Scott

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at