Approximate pi with inscribed & circumscribed polygons

Author:
Jon Dreyer
To approximate , we inscribe an n-gon within a circle of diameter 1 and also circumscribe an n-gon around it, and compare the inner and outer perimeters (pi must be between the two). The slider represents the log base 2 of n (so n becomes 2 to the power shown in the slider). http://passionatelycurious.com