223/71 < π < 22/7The approximation πa = 22/7 is referred to as Archimedes Approximation and is very good. It has been reported that a 2000 B.C. Babylonian approximation is πb = 25/8. We will compare these two approximations. The author, in the spirit of idiot's advocate, will venture his own approximation of πc = 19/6. The Babylonian approximation is good to one part in 189, the author's, one part in 125, and Archimedes an astonishing one part in 2484.
Archimedes' approach is to circumscribe and inscribe regular n-gons around a unit circle. Let Pn be the semi-perimeter of a regular n-gon circumscribed around a unit circle. Let pn be the semi-perimeter of a regular n-gon inscribed in a unit circle. Then,
Pn = n /(cot π/n) pn = n /(csc π/n)and with increasing n the approximations become very close,
pn < π < Pn
Archimedes derives and uses a cotangent half-angle formula and a cosecant identity,
cot x/2 = cot x + csc x, csc2 x = 1 + cot2 x.to calculate Pn and pn for n = k 2i, starting from a k-gon. From the geometry of hexagons,
cot π/6 = sqrt(3).Archimedes then calculates to n = 96.
The two trignometric identities can be combined into a single formula,
cot x/2 = cot x + sqrt(1 + cot x2)This formula is used for the semi-perimeter calculation of both the inscribed and circumscribed polygons. The square root will be approximated, with a bias consistent with the direction of approach to π. If Pn* is the estimate of Pn, then Pn* > Pn Likewise, if pn* is the estimate of pn, then pn* < pn must be maintained. The half-angle formula respects the direction of error,
If c >[<] cot x, then (c + sqrt(1+c2)) >[<] cot x/2.
Assuming that the rounding errors are not too large, the cosecant formula can be used to give a simply analysis of the converge around π of the pair of semi-perimeters. Write the identity as,
(1/pn2 - 1/Pn2) = 1/n2.Then,
(Pn - pn) = (Pn pn)2 / ( n2 (Pn+pn))The simple bounds,
3 < Pn < 2 sqrt(3) 3 < pn < πtrue when n ≥ 6 simplifies the error bound,
(Pn - pn) < 2 π2 / n2.As a numerical illustration, for n=96 the error bound is 0.00214184, and the actual error is,
(Pn - pn) = 0.00168265.
x1 -> x1 + sqrt(1+x1*x1) x2 -> (6*2^t)/x1 x3 -> (6*2^t)/sqrt(1+x1*x1) x4 -> 1/sqrt(x2-x3)The cotangent for successive half-angles in given by x1. It is the only iteration formula of the four. Variables x2 and x3 are the semi-perimeters of cicumscribed and inscribed n-gons, where n = 6 × 2t. Variable x4 measures the convergence of the two semi-perimeters, and the discussion of the previous section indicates that it should be proportional to n.
Set the initial value to sqrt(3) = 1.73205. Run the iteration in the Xi values view. Note that P_n converges decreasing and p_n converges increasing. Note how the inverse error measure x4 doubles with each time step, as the number of faces doubles.
Set two additional initial values, one below and one above sqrt(3). Run the iteration in the Xi vs. Time view.
Last Update: 6 August 2003
Burton Rosenberg