$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [rational] proposed gcd and lcm for rational
From: Scott McMurray (me22.ca+boost_at_[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