In 729 CE, the Tang court issued a new calendar that would earn the praise of astronomers for centuries: the Dayan calendar (大衍历, dà yǎn lì), or "Great Expansion Calendar," the creation of the Buddhist monk and mathematician Yi Xing (一行). This calendar was not merely a set of tables predicting solstices and equinoxes; it was a mathematical symphony, the first Chinese calendar to use a second-order interpolation formula for calculating solar motion, and the first to treat the moon's orbit as an ellipse rather than a circle. The Dayan calendar represented a level of mathematical sophistication that Europe would not match for another eight hundred years.
Yi Xing: The Astronomer Monk
Yi Xing — his name means "Single Practice" — was born Zhang Sui in 683 CE, into a distinguished family with a long tradition of scholarship. As a young man, he became a Buddhist monk, studying esoteric teachings at the Dayun Temple in Chang'an. But his reputation as a mathematician soon drew the attention of Emperor Xuanzong, who summoned him to court to address a growing crisis: the existing calendar, the Linyi calendar, had accumulated so much error that it no longer predicted the solstices accurately. Xuanzong wanted a new calendar that would restore the proper relationship between the imperial calendar and the heavens.
Yi Xing did not work alone. He was assisted by the engineer Liang Lingzan, who helped design the instruments needed to make the precise observations that the new calendar required. Together, they built a massive bronze armillary sphere, a celestial globe, and a set of gnomons distributed across the empire to measure the sun's shadow simultaneously at different latitudes. This empire-wide observational campaign was unprecedented in scope, gathering data that Yi Xing would use to build his mathematical model.
The Mathematical Heart
The Dayan calendar's most striking innovation was its treatment of solar motion. Earlier Chinese calendars had assumed that the sun moved at a constant speed along the ecliptic, but Yi Xing knew from observation that this was wrong. The sun appeared to move faster in winter and slower in summer — a phenomenon caused by the eccentricity of Earth's orbit, though Yi Xing did not know that. To model this variation, he used a second-order finite difference interpolation, a mathematical technique that allowed him to calculate the sun's position at any date with remarkable precision.
He applied the same method to the moon's motion, creating a model that accounted for the moon's elliptical orbit and its variable speed. His lunar tables predicted the timing of new moons and full moons with unprecedented accuracy, and for the first time in any calendar system, he included corrections for the lunar anomaly — the difference between the moon's mean and actual motion. The Dayan calendar also introduced a new calculation for predicting eclipses, taking into account the varying distances of the sun and moon from the earth.
The Empire-Wide Survey
One of the Dayan calendar project's most remarkable features was its reliance on synchronized observations across the Tang empire. Yi Xing dispatched teams of astronomers to thirteen locations spread over 3,800 kilometers of latitude, from the southern tropics to the northern borderlands. At each site, the teams measured the length of the sun's shadow at the summer and winter solstices, using identical gnomons and following the same procedures. These measurements allowed Yi Xing to calculate the length of a degree of latitude — a geodetic measurement that was the first of its kind in East Asia and one of the earliest in world history.
Yi Xing's latitude measurement was not perfectly accurate by modern standards, but it was close enough to be useful and far more precise than any previous Chinese attempt. It also allowed him to correct the traditional Chinese estimate of the size of the earth, bringing it closer to the true value. The survey data became the empirical foundation on which the entire Dayan calendar was built.
Innovations in Eclipse Prediction
The Dayan calendar introduced a new method for predicting solar and lunar eclipses that accounted for the geometry of the sun, moon, and earth in three dimensions. Earlier Chinese eclipse prediction had been based on simple cycles — the 135-month saros-like cycle — but Yi Xing recognized that this was not sufficient for accurate prediction. His method considered the latitude of the moon (its distance north or south of the ecliptic) and the varying speed of both the sun and moon, allowing him to predict not only the occurrence of an eclipse but its magnitude and the regions where it would be visible.
The accuracy of his predictions astonished his contemporaries. According to Tang historical records, Yi Xing successfully predicted a solar eclipse in 729 CE that was visible in the capital, convincing even the skeptics of the new calendar's superiority. The Dayan calendar was officially adopted in 729 and remained in use until the end of the Tang dynasty in 907, a testament to its reliability.
What Became of the Dayan Calendar
The Dayan calendar did not survive the fall of the Tang. The civil wars that ended the dynasty destroyed the imperial observatory and its records, including Yi Xing's original manuscripts. But the calendar's innovations did not vanish. Song dynasty astronomers studied the surviving fragments of Yi Xing's methods and incorporated them into their own calendar systems. The use of second-order interpolation for solar motion became a standard feature of Chinese mathematical astronomy, remaining in use through the Ming dynasty. The empire-wide survey that Yi Xing had pioneered was repeated by later astronomers, including Guo Shoujing in the Yuan dynasty, who used the same methods to create the Shoushi calendar.
Yi Xing died in 727 CE, just two years before his calendar was officially adopted. He did not live to see it succeed, but his mathematical methods outlived him by more than half a millennium. The Dayan calendar stands as a monument to the power of combining naked-eye observation with rigorous mathematics — a demonstration that the Chinese astronomers of the Tang dynasty had mastered the art of predicting the heavens.
❓ Frequently Asked Questions
📝 Chinese Vocabulary
大衍历 — : The Great Expansion Calendar; Yi Xing's masterpiece.
一行 — : Yi Xing, the Buddhist monk who created the Dayan calendar.
梁令瓒 — : Liang Lingzan, the engineer who built instruments for the calendar project.
日影 — : Sun shadow; the gnomon measurements used in the empire-wide survey.
朔望 — : New moon and full moon; the lunar phases tracked by the calendar.
🎉 Fun Facts
- Yi Xing was a Buddhist monk who never held an official government post, yet he was placed in charge of the greatest astronomical project of the Tang dynasty.
- The empire-wide survey for the Dayan calendar covered a distance equivalent to the entire width of the continental United States.
- Yi Xing's second-order interpolation formula for solar motion is mathematically equivalent to what Europeans would later call Newton's forward difference formula.