pi from area

user_icon kevin_karplus shared it 6 months, 4 weeks ago
223 views, 2 people love it, 2 taggers, 17 downloads, in 2 galleries, 1 remix
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

skryed skryed 6 days, 4 hours ago

you live un santa cruz? lol me too

(view all replies)
Comment Reply

Techie31415 Techie31415 2 weeks, 3 days ago

I managed to speed it up a bit and let it run for 100,000 samples, but it came consistently to about -0.015 of pi. Since it never (at the end) went above the true value of pi in the 3 tests that I did, seemingly, the random number generator in Scratch is probably only pseudo-random, or I did not do enough tests. Is there any part of statistics that might predict the value of pi that I got with 100,000 tests to be within this range, however?

(view all replies)
Comment Reply

bubble-07 bubble-07 1 month, 3 weeks ago

To make it a little more efficien, you could make it so it goes line by line, with the script copied within the forever loop. That i good for optomization.

(view all replies)
Comment Reply

DrSuper DrSuper 2 months, 4 weeks ago

This is cool and a great idea. If you could show the math a bit and advise the looker to be patient they will get it. Not many people have dowloaded it so i fear not many lookers got it. Look at my game Susa you will like it!

(view all replies)
Comment Reply

jhnbytwoo jhnbytwoo 5 months, 2 weeks ago

Oh, wait, I see the variable name now, sorry.

(view all replies)
Comment Reply

jhnbytwoo jhnbytwoo 5 months, 2 weeks ago

Isn't Pi 3.14159... not 314,159...? Or will it fix that?

(view all replies)
Comment Reply

Ivaash Ivaash 6 months ago

Can you help me you're a forum moderator (link to forums)

(view all replies)
Comment Reply

kevin_karplus kevin_karplus 6 months, 3 weeks ago

From statistics, we can work out that both the mean and the variance of the number of points in the circle is n*pi/4. That means that the standard deviation of the estimate of pi will be about pi/sqrt(n). After 10000 samples, you expect to be within about +- 0.03 of pi.

(view all replies)
Comment Reply

bigB bigB 6 months, 3 weeks ago

its a good priject but i am actually suprised at how ineffiecient it is.

(view all replies)
Comment Reply

maki maki 6 months, 3 weeks ago

this is similar to my project

(view all replies)
Comment Reply

planetX planetX 6 months, 4 weeks ago

cool

(view all replies)
Comment Reply