There is a mind-blowing application of matrix multiplication: doing recursion (almost) at the speed of light!
By the end of this thread, you'll learn precisely how.
Trust me, if you are into programming and math, you want to know this trick.
↓ ↓ ↓
By the end of this thread, you'll learn precisely how.
Trust me, if you are into programming and math, you want to know this trick.
↓ ↓ ↓
A small caveat, though. Due to integer overflow, NumPy is not suitable for this task.
Homework for you: write a plain Python implementation that takes advantage of the arbitrarily large ints!
Feel free to share your solution! (I made the snippets with carbon.sh.)
Homework for you: write a plain Python implementation that takes advantage of the arbitrarily large ints!
Feel free to share your solution! (I made the snippets with carbon.sh.)
Having a deep understanding of math will make you a better engineer. I want to help you with this, so I am writing a comprehensive book about the subject.
If you are interested in the details and beauties of mathematics, check out the early access!
tivadardanka.com
If you are interested in the details and beauties of mathematics, check out the early access!
tivadardanka.com
Loading suggestions...