Yi Xing (683-727), lay surname Zhang, given name Sui, a native of Changle in Weizhou, was a Tang dynasty astronomer and Buddhist scholar. Born into a distinguished family — great-grandson of the general Zhang Gongjin — he was broadly learned from youth; to escape the attentions of the powerful courtier Wu Sansi he took monastic vows, studying under Puji and later learning esoteric Buddhism from the missionary masters Subhakarasimha and Vajrabodhi, with whom he translated the Mahavairocana Sutra. In 721 Emperor Xuanzong ordered him to reform the calendar. With the engineer Liang Lingzan he built a water-driven celestial sphere fitted with an automatic time-announcing mechanism, regarded as one of the earliest mechanical clock devices in world history. He then directed a nationwide geodetic survey of the sky, sending Nangong Yue and others to measure simultaneously the summer-solstice gnomon shadow and the height of the pole star at four stations in Henan; from the data his team computed that one degree of difference in polar height corresponded to about 351 li and 80 bu of north-south distance — the first measured arc of a meridian in world history, roughly ninety years before comparable Arab measurements. In 727 he completed the Dayan Calendar in fifty-two fascicles, the most precise of Tang calendars, aligning solar terms with the sun's true motion; Heian period|Japan kept using it into the Heian period. He died of illness that same year, and Xuanzong conferred the posthumous title 'Great Wisdom Chan Master'. That a monk should have directed state astronomical engineering is a unique case in the history of ancient science.