Extended Euclidean Algorithm (EEA)

The EEA computes the GCD of two integers and their Bézout coefficients, playing a fundamental role in number theory and cryptography.
7 download
Aggiornato 11 apr 2025

Visualizza la licenza

The extended Euclidean algorithm computes the GCD of two integer numbers while determining the Bézout coefficients 𝑥 and 𝑦 such that 𝑎𝑥+𝑏𝑦=gcd(𝑎,𝑏). This method is particularly useful in number theory and cryptography, especially for computing modular inverses, which are essential in methods such as RSA encryption.
The attached livescript provides the implementation of the extended Euclidean algorithm in both recursive and iterative versions. Each version is accompanied by an explanation of its correctness.

Cita come

Claudio Fontana (2025). Extended Euclidean Algorithm (EEA) (https://it.mathworks.com/matlabcentral/fileexchange/180770-extended-euclidean-algorithm-eea), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2024b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0