My banana (given the right tools) can compute a good estimate of PI using the Monte Carlo method.
I've written a processing code that let's you see the points beeing added to the plot every radioactive event. Consult the internet if you don't know this method yet. It's probalby one of the most inefficient methods to get a numerical estimation of pi, but it works and it's very intuitive.
The code is available in the github repo:
https://github.com/5N44P/Banana-Random-Number-Generator/blob/master/src/bananaPi_pde.pde
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.