TwinPendulums LogoTwinPendulums

Approximating π with Polygons

Discover how Archimedes used inscribed and circumscribed polygons to calculate the value of π over 2,000 years ago. Watch as increasing the number of sides brings us closer to the true value.

Polygon Visualization
r = 1006-sided PolygonsCircle diameter = 200
Controls
3 (Triangle)360 (Nearly Circle)

Legend

Inscribed polygon
Circumscribed polygon
Circle
Calculated Metrics

Radius (r)

100.0

Diameter (d)

200.0

Side Lengths

sinscribed = 2r × sin(180°/n)100.0000
scircumscribed = 2r × tan(180°/n)115.4701

Perimeters

Pinscribed = n × sin600.0000
Pcircumscribed = n × sout692.8203

π Approximations

πinscribed = Pin/d3.000000
πcircumscribed = Pout/d3.464102
True π value3.141593

Error Analysis

Error (inscribed)0.141593
Error (circumscribed)0.322509
Bracket width0.464102

Current formulas (n = 6):

πin = 6 × sin(180°/6) = 3.000000

πout = 6 × tan(180°/6) = 3.464102

Conclusion

Archimedes' Bounds for π:

3.000000<π<3.464102

True π ≈ 3.141593

Bracket Width

0.46410162

Smaller is better

Quality Rating

Fair

Based on bracket width

Approximation Quality54%

🔍 Key Insight

Try increasing the number of sides to see better approximation!

📚 Remember

As n increases, the bounds tighten around π. This is because both polygons approach the shape of the circle, making their perimeters approach the circumference. The ratio of circumference to diameter is always π, regardless of the circle's size!

🏛️ The Mathematical Foundation

Archimedes' Method – Overview

Imagine a circle of radius r. Archimedes ingeniously:

  1. Inscribed a regular polygon inside the circle (touches the circle at the vertices)
  2. Circumscribed a regular polygon around the circle (each side is tangent to the circle)
  3. Calculated the perimeters of both polygons
  4. As the number of sides n increases, both perimeters converge to the circumference C = 2πr
  5. Therefore: Perimeterinscribed < C < Perimetercircumscribed
  6. Taking the ratio of each perimeter to the diameter gives lower and upper bounds for π

🎯 Key Insight

The ratio of circumference to diameter (C/d) is constant for all circles, and this constant is what we call π. By approximating the circumference with polygon perimeters, we can approximate π.

📐 The Mathematics

Inscribed Polygon

For a regular n-gon inscribed in a circle of radius r:

Side length: sin = 2r × sin(180°/n)

Perimeter: Pin = n × sin

π approximation: πin = Pin/d

Circumscribed Polygon

For a regular n-gon circumscribed around a circle of radius r:

Side length: sout = 2r × tan(180°/n)

Perimeter: Pout = n × sout

π approximation: πout = Pout/d

📊 Historical Example

Here's how the approximation improves as we increase the number of sides (for a circle with radius = 1):

Sides (n)πinscribedπcircumscribedBounds on π
63.0003.4643.000 < π < 3.464
123.1063.2183.106 < π < 3.218
243.1333.1603.133 < π < 3.160
963.1413.1433.141 < π < 3.143

🏆 Archimedes' Achievement

Using 96-sided polygons, Archimedes determined that π is between 3.1408 and 3.1429 — accurate to two decimal places! This remained the most precise approximation of π for nearly 1,000 years.