Posts in Python
Calculating π with Numba
- 29 March 2024
Here is a version of the calculation of π using numba. Numba does just-in-time compilation from Python code and also supports parallelism. I was able to test calculate_pi()
in the order of billions of iteretions and without consuming too much memory.