Skip to main content

rat_gcd

Function rat_gcd 

Source
pub fn rat_gcd(a: &Rat, b: &Rat) -> Rat
Expand description

The greatest common divisor of two rationals: gcd(numerators) over lcm(denominators), which is the largest rational dividing both a whole number of times.