All sort of helper methods used to present mathematics
Unfortunately, the LaTeX support inside python is not too helpful in case you want to actually generate the LaTeX image itself. So while we can generate the strings, some of them cannot be converted into images (e.g. it doesn't recognise
\begin{...}
).
Generator of generalized continued fractions as in the example below. See this google colab notebook
for examples, or the file tests/test_continued_fractions.py
.
Draw binary trees in a "compact" way. See the tests\test_graphs.py
for examples.
Was a great tool in my notes about Huffman codes.
Use 2D arrays to form either matrices of lists of vectors. Was useful in my notes about Jordan decomposition.