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.
The Dayan Calendar and the I Ching
The name Dayan, meaning great expansion, was borrowed from the I Ching, the classic of changes, where it refers to the unfolding of all possibilities from the divination by yarrow stalks. By choosing this name, Yi Xing linked his mathematical calendar to a deeply respected philosophical tradition, suggesting that the motions of the heavens were a vast expansion of the same patterns found in the book. This was more than decoration: it signaled to the court that the new calendar rested on proper cosmic principles, not merely on arithmetic. The connection helped the monk-astronomer win imperial backing for a project that was as much a cultural statement as a technical one, bridging scholarship, religion, and state science.
Instruments of the Dayan Project
Yi Xing's accuracy depended on new instruments built with the engineer Liang Lingzan. Their great bronze armillary sphere carried rings for the equator, the ecliptic, and the horizon, letting observers track a star or planet against a spherical framework. A celestial globe turned in step with the real sky, while a network of identical gnomons across the provinces gave synchronized shadow data. These tools turned the abstract mathematics of the calendar into something observable and repeatable, so that predictions could be checked against measurement. The loss of most of these instruments in later wars was a real setback for Chinese astronomy, since the physical embodiments of the Dayan methods vanished even though their written procedures survived.
The Dayan Legacy in Later Calendars
Although the Tang dynasty fell and took the Dayan's original manuscripts with it, the calendar's methods lived on. Song dynasty astronomers recovered Yi Xing's techniques from surviving fragments and built them into their own systems, and the use of second-order interpolation for solar motion became standard practice for centuries. The empire-wide survey he pioneered was repeated by later astronomers, most famously by Guo Shoujing, whose Yuan dynasty measurements refined the same geodetic idea. In this sense the Dayan calendar was less a finished product than a method that seeded later work. Its greatest legacy was the demonstration that careful, synchronized observation and rigorous mathematics together could predict the heavens with an accuracy no earlier calendar had achieved.
❓ 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.
二次差 — : Second-order difference, the interpolation method Yi Xing used to model the sun's varying speed along the ecliptic.
里差 — : Meridian difference, the correction for longitude that let Yi Xing adjust eclipse times across the spread of the empire.
太史局 — : The Astronomical Bureau, the imperial office that supervised Yi Xing's survey and officially issued 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.
- Yi Xing's calendar was the first in the world to treat the moon's orbit as an ellipse rather than a circle, a geometric insight Europeans reached only with Kepler centuries later.
- To keep his instruments synchronized, Yi Xing had observers at different sites take shadow readings at the very same noon, an early example of a coordinated nationwide scientific campaign.
- The Dayan calendar remained the official standard for nearly two centuries, outliving the emperor who commissioned it and several later reforms.