Skip to main content

Module greatest_common_divisor

Module greatest_common_divisor 

Source
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 x and y such that:
gcd
Computes the greatest common divisor (GCD) of two integers using the classical Euclidean algorithm.