If you throuw a dart randomly at a square and it has equal probablity of landing anywhere in that square, then the ratio of the hits inside the inscribed circle to the hits inside the square is pi/4, so multiply that ratio by 4 and you get an approximation of pi. I assume that is how it is being calculated here.
If you throw a dart at a square board and it has equal probability to land anywhere on the board, then the ratio to the number of points inside the inscribed circle to the number of points outside the circle turns out to be pi. This is just one of many ways of calculating pi. I developed my own method once. Maybe someday, I will make a program about it.
it takes a loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongg time....
Comments
You need to be logged in to post comments
Add a Comment
3.1415926535 8979323846 2643383279 50288419716939937510 5820974944 5923078164 0628620899 86280348253421170679 8214808651 3282306647 0938446095 5058223172 5359408128 48111745028410270193 8521105559 6446229489 5493038196 4428810975 6659334461 28475648233786783165 2712019091 4564856692 3460348610 4543266482 1339360726 02491412737245870066 0631558817 4881520920 9628292540 9171536436 7892590360 01133053054882046652 1384146951 9415116094 3305727036 5759591953 0921861 lol i just got that off Wikipedia
It says 3.1332 and stop after some time.
pi is
very cool, i did a project similar to this for a numerical methods class
i dont know what this is supposed to show me...
If you throuw a dart randomly at a square and it has equal probablity of landing anywhere in that square, then the ratio of the hits inside the inscribed circle to the hits inside the square is pi/4, so multiply that ratio by 4 and you get an approximation of pi. I assume that is how it is being calculated here.
If you throw a dart at a square board and it has equal probability to land anywhere on the board, then the ratio to the number of points inside the inscribed circle to the number of points outside the circle turns out to be pi. This is just one of many ways of calculating pi. I developed my own method once. Maybe someday, I will make a program about it.
(view all replies)Not too accurate...but still cool!!!
it takes a loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongg time....
3.116?
no 3.141
(view all replies)if you think about it you could do a quarter circle but larger which would be more accurate.
NICE
really really cool
wow, what a nice circle thingy, awesome.
Add this to the scratch Pi day contest gallery
COOL, i have a project similar to this, it approximates pi!
wow..
i was wonderig if you might want to enter this in the Scratch Pi Day Contest. See below links for more info
(link to project)
(link to gallery)
Why does it eventually stop?
sorry forgot to type that in
Well it is an approximation, so it wouldn't be exactly correct, and by the way it's 3.1415926535, not 3.145926535! The project is awesome!
the numbers are very inaccurate,the first 10 digits of pi is 3.145926535
It takes a very long time to converge on the expected value...very cool approach. I have a key on my calculator the value a bit faster :)
i can see the bubble
Yeah, no speech bubble. Also, for those not familiar with Monte Carlo methods, you should give a brief explanation of how it works. Nicely done.
No idea what's happening here yet, so this is another of your projects to download and study.
That's odd - speech bubble not showing up...