Pi from Scratch

  scripts
  sprites
See inside
Instructions

Click the green flag to begin calculating pi. Ideally, the longer you allow this simulation to run, the more closely it will approximate the value of pi.

This calculation, estimates the area of a circle and uses that estimation to calculate a rough estimate of pi.

Don't expect this to yield extremely quick or accurate results. -intended only as an illustration of a simple way to calculate pi.

Want to calculate pi on your own? Let the simulation run for a while and then stop it. Divide 'inCount' by 'total' and finally multiply by 4.

pi = ( inCount / total ) * 4

Notes and Credits

For a more detailed explanation,

http://codyalantaylor.com/archive/pi-calculation-via-monte-carlo-simulation/

Also, see these other pi calculation demonstrations:

Wallis & Leibniz Methods
http://scratch.mit.edu/projects/11410965/

Polygon Method
http://scratch.mit.edu/projects/28049466/

Klingenstierna Method
http://scratch.mit.edu/projects/12754597/

Shared: 14 Mar 2015 Modified: 14 Mar 2015
Favorite this project 5
Love this project 10
Total views 237
View the remix tree  1
  
More projects by CodyAlanTaylor