3 ms·
I see many comments criticizing the post for only implementing simple mathematics. This is true. However, the approach of understanding math through code is st
by bitforger 7y ago
I see many comments criticizing the post for only implementing simple mathematics. This is true.
However, the approach of understanding math through code is still very helpful, I think. Personally, implementing things that are fuzzy mathematically provides immense clarity once I write them down.
For example, a simple monty hall simulator[1]. Or implementing matrix multiplication multiple ways to understand why each is equivalent[2], and why multiplying A(BC) can sometimes be faster than (AB)C[3].
I am not sure why this helps me. It may be because I was "raised" as a coder, and so that is how my brain works. But I also think that implementing something in code is very close to constructivist mathematics, in spirit. You cannot prove anything if you cannot construct (/implement) it.
[1] https://github.com/mitchellgordon95/implementing-paradoxes/blob/master/monty_hall.py https://github.com/mitchellgordon95/implementing-paradoxes/b...
[2] https://github.com/mitchellgordon95/implementing-paradoxes/blob/master/matmul.py https://github.com/mitchellgordon95/implementing-paradoxes/b...
[3] https://github.com/mitchellgordon95/implementing-paradoxes/blob/master/matmul_assoc.py https://github.com/mitchellgordon95/implementing-paradoxes/b...