Modify the program to show the running of the euclidean
algorithm! Plot three heat maps side by side in a window similar
to one of the following. With the new version of
matplotlib installed on
your computer the result of the home work looks like this:
The following functions should be shown on the heat maps:
- The first heat map shows the function
\(\log_2 a + \log_2 b\), which is generated by the
program euclidean.py.
- The second heat map shows the number of steps of the
Euclidean algorithm on each pair \((a, b)\). On the number of
steps we mean: how many divisions with reminder made on \((a_i,
b_i)\) pairs or decide to stop.
- The third heat map shows the value
\(\mathop{\mathrm{gcd}}(a, b)\).