/Euclid-Latex-Generator

Generates LaTeX that shows the steps of the matrix version of Euclid's algorithm for finding GCDs.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Euclid-Latex-Generator

Generates LaTeX that shows the steps of the matrix version of Euclid's algorithm for finding GCDs. Works in Python 2 or 3.

How to Use

Call with as many pairs of numbers as required, like so: python gen.py 79,20 127,13 > output.txt

Example Output

python gen.py 79,20 >> screen.tex

Screenshot of matrices produced