https://github.com/arrmansa/calculating-pi-by-counting-collisions-with-numba
Based on a 3Blue1Brown video and G Galperin's work. 150x speedup with numba.
https://github.com/arrmansa/calculating-pi-by-counting-collisions-with-numba
Last synced: 2 months ago
JSON representation
Based on a 3Blue1Brown video and G Galperin's work. 150x speedup with numba.
- Host: GitHub
- URL: https://github.com/arrmansa/calculating-pi-by-counting-collisions-with-numba
- Owner: arrmansa
- License: apache-2.0
- Created: 2022-06-12T20:03:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T21:28:52.000Z (almost 3 years ago)
- Last Synced: 2025-01-22T18:09:35.075Z (4 months ago)
- Language: Jupyter Notebook
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Calculating pi by counting collisions with numba
Based on a 3Blue1Brown video and G Galperin's work. 150x speedup with numba.
Original paper https://www.maths.tcd.ie/~lebed/Galperin.%20Playing%20pool%20with%20pi.pdf
Collision formula from https://en.wikipedia.org/wiki/Elastic_collision#One-dimensional_Newtonian
## Original Video
https://www.youtube.com/watch?v=HEfHFsfGXjs
https://www.youtube.com/watch?v=jsYwFizhncE
## Awesome demo
https://prajwalsouza.github.io/Experiments/Colliding-Blocks.html