Happy pi day! (3/14) Just press play and watch pi be estimated! I am curious if this could be optimized further, but floating point numbers in Scratch have rounding errors eventually, causing the code to break at very small angles.
How this works: 1. An arc of a circle is estimated, using the distance between two points on a circle. (visualized in light blue) 2. The circumference is estimated by multiplying the estimated arc length by 360 / degrees 3. The estimated circumference is divided by the length of the diameter The angle's exponential decay is limited currently until I find a solution to storing very small floating point values