Approximating Pi with Inscribed and Circumscribed Polygons
Loading the math board and drawing, please wait…
This GeoGebra example demonstrates how to approximate the mathematical constant π by using regular polygons inscribed in and circumscribed around a circle. The core concept is the limit process: as the number of sides n increases, the perimeter of the inscribed polygon approaches the circle's circumference from below, while the circumscribed polygon's perimeter approaches from above, yielding upper and lower bounds for π. The construction uses GeoGebra commands such as Polygon to create the polygons, Circle for the unit circle, Textfield and InputBox for interactive side-number input, Zip and list operations to compute perimeters, and segment objects (seg1, seg2) to visualize side lengths. Text objects (text1, text2) display the current approximation values in real time. This is ideal for high school or early college students exploring limits, the nature of π, or the historical method of exhaustion (Liu Hui's circle cutting). It also serves as an excellent interactive tool for mathematics labs and inquiry-based learning.
GeoGebra Commands & Parameters
Textfield(n) → InputBox1Zip(Segment[(r1; ((π / n * 2) * k)), (r1; ((π / n * 2) * (k + 1)))], k, 0…(n - 1)) → l11Zip((r1; ((π / n * 2) * k)), k, 0…(n - 1)) → l1Polygon(l1) → poly1Textfield(r1) → InputBox2Circle((0, 0), r1) → c1Zip((r2; (π / n * ((2 * k) + 1))), k, 0…(n - 1)) → l2Circle((0, 0), r2) → c2Polygon(l2) → poly2Zip(Segment[(r2; (π / n * ((2 * k) + 1))), (r2; (π / n * ((2 * k) + 3)))], k, 0…(n - 1)) → l22
AI Drawing Prompt Reference
Draw a unit circle centered at the origin. Inside the circle, construct a regular polygon with vertices evenly spaced on the circle, with the number of sides controlled by an input field. Outside the circle, construct another regular polygon whose sides are tangent to the circle, with vertices on a larger circumscribed circle. Both polygons share the same center. The inner polygon's vertices start at angle 0, while the outer polygon's vertices are offset by half a step. Connect adjacent vertices with line segments to show side lengths, and display the perimeters of both polygons in real time as lower and upper approximations of π.
The prompt above was compiled from the original drawing commands and is for reference only.