How did ancient Chinese mathematicians calculate the diameter of the sun and the distance between the sun and the Earth?

This article takes the records in the Zhou Pi Suan Jing as an example to introduce the specific methods used by ancient Chinese mathematicians to measure the diameter of the sun and the distance between the sun and the earth using the Pythagorean theorem and proportional methods, and the results obtained. By comparing with the modern measured values, it analyzes the reasons why the ancient people's calculation results differed greatly from the actual values, namely, they believed that the earth was flat. At the same time, it points out that the error in the ratio of the distance between the sun and the earth to the diameter of the sun measured by them is not too large.

How did ancient Chinese mathematicians calculate the diameter of the sun and the distance between the sun and the Earth?

Astronomical calendars were an important part of ancient mathematics. In ancient China, mathematicians were called "Couren", which originally meant people who engaged in astronomical and calendar calculations for generations. The oldest mathematical work in China, the "Zhou Pi Suan Jing", tells the story of how the "Couren" in the Western Zhou Dynasty (around 1000 BC) used the Pythagorean theorem and proportional methods to conduct astronomical calculations.

In the book, the character "Chen Zi" told "Rong Fang": If an 8-foot-long (1 foot equals 10 inches) hollow bamboo pole is aligned with the sun, and the sun is observed to just cover the central hole of the pole at one end, then the other end of the pole will also be observed to be covered by the sun. Additionally, an 8-foot-long bamboo pole was erected in an open space in the Zhou King's city as a "table" (also called "Bian"); it was observed that on the noon of the summer solstice each year, the shadow of the table was the shortest, measuring 1.6 feet; and towards the south (north), the shadow of the table would become shorter (longer) by 1 inch every 1,000 li. Thus, on the day when the shadow of the table reached 6 feet at noon, there would be no shadow at the point 6,000 li south of the table; using the Pythagorean theorem and proportional methods, it was calculated that the distance from the sun to the point where there was no shadow on the ground was 80,000 li, and the distance from the sun to the observation point in the king's city was 100,000 li; furthermore, it was calculated that the diameter of the sun was 1,250 li.

Now we know that the average distance between the sun and the Earth is 149,600,000 kilometers, and the diameter of the sun is 1,390,000 kilometers. Therefore, the ratio of the distance between the sun and the Earth to the diameter of the sun is approximately 107:1. The reason why the ancient calculations differed greatly from modern actual observations 3,000 years ago was mainly because they believed that the Earth was flat, although they used correct mathematical principles. However, the error in the ratio of the distance between the sun and the Earth to the diameter of the sun was not too large.