Collection of sage files used while reading Shannon's A Mathematical Theory of Communication.
power_matrix_plot
Sage file that exponentiates 2-by-2 matrices and compares it to the exponentiation of the bigger eigenvalue
To run in the Sage interpreter, execute attatch "power_matrix_plot.sage"
Call main() to show a plot of [[1, 2], [-1,5]] exponentiated 100 times (in the log y scale - change line 17)
Otherwise, call power_matrix_plot() on your 2-by-2 matrix
Call colors() to see what the colors correspond to: the bottom one is 1,1, then 1,2, then 2,1, then 2,2, then the eigenvalue
comb.sage
Finds how much combinations increase when scaled
uneven_choices.sage
Weighted choices