approximating pi - Monte Carlo method

Install Java to view this project right on your browser!

user_icon David_Hellam shared it 5 years ago
1040 views, 3 taggers, 8 people love it, 127 downloads, in 9 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
TheScratcherOf2012 TheScratcherO… 1 year, 3 months ago

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

mathematics mathematics 3 years ago

It says 3.1332 and stop after some time.

likegames likegames 4 years, 1 month ago

pi is 

rwcwalter rwcwalter 4 years, 1 month ago

very cool, i did a project similar to this for a numerical methods class

jcv1235 jcv1235 4 years, 2 months ago

i dont know what this is supposed to show me...

lsquaredmom lsquaredmom 3 years, 9 months ago

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.

lsquaredmom lsquaredmom 3 years, 9 months ago

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)
harrypotter345 harrypotter345 4 years, 2 months ago

Not too accurate...but still cool!!!

vgman20 vgman20 4 years, 2 months ago

it takes a loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongg time....

Sakani Sakani 4 years, 2 months ago

3.116?

likegames likegames 3 years, 10 months ago

no 3.141

(view all replies)
bigB bigB 4 years, 2 months ago

if you think about it you could do a quarter circle but larger which would be more accurate.

Baller5 Baller5 4 years, 2 months ago

NICE

rishy rishy 4 years, 2 months ago

really really cool

Azncl Azncl 4 years, 2 months ago

wow, what a nice circle thingy, awesome.

geckofreak geckofreak 4 years, 2 months ago

Add this to the scratch Pi day contest gallery

maki maki 4 years, 2 months ago

COOL, i have a project similar to this, it approximates pi!

Klovira Klovira 4 years, 2 months ago

wow..

planetX planetX 4 years, 2 months ago

i was wonderig if you might want to enter this in the Scratch Pi Day Contest. See below links for more info

planetX planetX 4 years, 2 months ago

(link to project)

planetX planetX 4 years, 2 months ago

(link to gallery)

Lucario621 Lucario621° 4 years, 3 months ago

Why does it eventually stop?

cooldude16 cooldude16 4 years, 4 months ago

sorry forgot to type that in

maki maki 4 years, 4 months ago

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!

cooldude16 cooldude16 4 years, 5 months ago

the numbers are very inaccurate,the first 10 digits of pi is 3.145926535

Paddle2See Paddle2See* 4 years, 6 months ago

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 :)

sniper_rick sniper_rick 4 years, 6 months ago

i can see the bubble

jsimone jsimone 4 years, 12 months ago

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.

mohlar mohlar 4 years, 12 months ago

No idea what's happening here yet, so this is another of your projects to download and study.

David_Hellam David_Hellam 5 years ago

That's odd - speech bubble not showing up...

Please Wait...