Expand description
Greatest common divisors and Bézout coefficients by Euclid’s algorithm.
See the book entry Divisibility and modular arithmetic.
Functions§
- extended_
gcd - Computes the greatest common divisor (GCD) of two integers and finds
integer coefficients
xandysuch that: - gcd
- Computes the greatest common divisor (GCD) of two integers using the classical Euclidean algorithm.