ScratchData LogoScratchData
Back to Layzej's profile

Calculate Pi Using Circumference/Diameter

LALayzej•Created September 13, 2014
Calculate Pi Using Circumference/Diameter
20
11
1206 views
View on Scratch

Instructions

To Play: Change theta and check the results for Pi. PI is defined as the ratio of a circle's circumference to its diameter (Circumference/Diameter). The result should be 3.14159 regardless of the size of the circle. I wanted to see if I could calculate PI by measuring the diameter and the circumference. It looks like my measuring techniques are more accurate for larger circles and result in 4 digits of accuracy. For very small circles the technique is not very accurate at all. The method for calculating the diameter is probably pretty accurate: Subtract the rightmost x-position from the left most x-position. The method for calculating the circumference is probably where the errors are introduced. The circle is drawn by moving one step and then turning right theta degrees. The process is repeated until we end up back where we started. The circumference is assumed to be the number of steps that we took to complete the circle.

Description

I was inspired by this project by @annoyingperson that uses a very clever technique (that I don't really understand...) to calculate Pi: http://scratch.mit.edu/projects/26091988/#comments-21899105

Project Details

Project ID26682028
CreatedSeptember 13, 2014
Last ModifiedMarch 17, 2016
SharedSeptember 13, 2014
Visibilityvisible
CommentsAllowed