How is the value of pi calculated?

This article focuses on the calculation methods of pi, introducing the measurement and estimation methods of early civilizations, Archimedes' approximation method of regular polygons in ancient Greece, Liu Hui and Zu Chongzhi's method of approximating the circle in China, the infinite series analysis method after the birth of calculus, and the rapid improvement of computing accuracy in the computer era. It also points out that in daily applications, it is enough to obtain an approximate value of pi.

How is the value of pi calculated?

The circle is perhaps the most common shape in nature. People have long noticed that the ratio of a circle's circumference to its diameter is a constant, which is now commonly referred to as pi. It is one of the most important mathematical constants. The earliest written records of pi come from the ancient Babylonians around 2000 BC, who believed that pi = 3.125. The ancient Egyptians used pi = 3.1605. Chinese ancient books recorded that "the diameter of a circle is one, and its circumference is three," meaning pi = 3, which is also the value of pi recorded in the Old Testament of the Bible. References to pi can also be found in the scriptures of Jainism in ancient India. These early values of pi were generally obtained by measuring the circumference of a circle and dividing it by its diameter. However, at that time, the circumference of a circle could not be accurately measured, so it was impossible to obtain an accurate value of pi through estimation methods.

In the 3rd century BC, Archimedes, a great Greek mathematician, first proposed a scientific method for calculating the circumference of a circle: the circumference of a regular polygon inscribed (or circumscribed) within a circle can be precisely calculated. As the number of sides of the regular polygon increases, it will become closer and closer to a circle, and the circumference of the polygon will also become closer and closer to the circumference of the circle. Archimedes used the circumference of regular polygons inscribed and circumscribed within a circle to provide lower and upper bounds for pi. The more sides of the regular polygon, the more accurate the calculated value of pi will be. Archimedes started with a regular hexagon and successively doubled the number of sides of the regular polygon, using the Pythagorean theorem (known in the West as the Pythagorean theorem) to determine the length of the sides of the polygon after doubling the number of sides. Therefore, with the continuous doubling of the number of sides, Archimedes' method could in principle calculate pi with any accuracy. He himself calculated up to a regular 96-sided polygon and obtained 223/71 < pi < 22/7, meaning the value of pi is between 3.140845 and 3.142857. In the West, later generations have been using Archimedes' method to calculate the circumference of a circle for nearly 19 centuries.

Coincidentally, Liu Huo, a mathematician of the Three Kingdoms period in China, provided a similar algorithm in his commentary on the Nine Chapters on Mathematical Art in 264 AD, calling it the method of cutting the circle. The difference is that Liu Huo used the area of a regular polygon inscribed within a circle to gradually approximate the area of a circle to calculate pi. Around 480 AD, Zu Chongzhi, a great scientist of the Northern and Southern Dynasties, used the method of cutting the circle to calculate pi as 3.1415926 < pi < 3.1415927, which was accurate to seven decimal places and set a world record for the calculation of pi.

Before the 17th century, calculating the circumference of a circle was mainly done using the above-mentioned geometric methods (the method of cutting the circle). Rudolf van der Peet spent most of his life calculating the circumference of a regular 2^62 sided polygon and calculated pi to 35 decimal places in 1610. Therefore, the Germans called pi the "Rudolf number". A revolutionary change in the study of pi occurred in the 17th century with the invention of calculus. The combination of calculus and power series expansion led to the analytical method of calculating pi using infinite series, which eliminated the need for complicated cutting the circle methods. Pioneers of calculus such as Pascal, Newton, and Leibniz all contributed to the calculation of pi. In 1706, British mathematician Machin derived the formula now named after him, providing the first rapid algorithm for calculating pi. Machin thus calculated pi to 100 decimal places. Subsequently, many similar formulas were discovered, and the accuracy of pi calculations also increased. In 1874, Sheckes of Britain spent 15 years calculating pi to 707 decimal places, which is the highest record of manually calculating pi and is recorded in the Pi Hall of the Discovery Palace in Paris. Unfortunately, it was later found that the results were incorrect from the 528th place onwards.

With the advent of electronic computers, people began to use them to calculate the value of pi, and since then, the length of pi has expanded at an astonishing rate.Here's the translation of the text into English with detailed explanations:

Since 1949, the value of π has been calculated to 2037 decimal places; in 1973, it was calculated to 1 million decimal places; in 1983, it was calculated to 10 million decimal places; in 1987, it was calculated to 100 million decimal places; in 2002, it was calculated to 100 billion decimal places; and by 2011, it had been calculated to 100 trillion decimal places. The process of human understanding of π also reflects the development of mathematics from a certain perspective. In human history, there has never been such a frenzied competition in calculating the value of a mathematical constant. However, 10 decimal places are sufficient to meet almost all practical calculation needs. In daily life, it's generally sufficient to assume π = 3.1416. The legendary story of π has become a part of history, and readers don't need to spend time calculating or memorizing the value of π anymore.