China's mathematical and calendrical tradition was a system of its own. From the "nine numbers" of the pre-Qin, the Han fixed the Nine Chapters on the Mathematical Art, an algorithmic system built on nine classes of applied problems — equations, excess and deficiency, the right triangle and others — and Liu Hui's commentary of 263 introduced ideas of limit and circle-cutting; in the Southern Dynasties Zu Chongzhi computed pi between 3.1415926 and 3.1415927, about nine hundred years ahead of the world. Astronomy and mathematics were two sides of one coin: to make the calendar agree with the heavens, the tropical year was remeasured in every age; the longest-used Shoushi calendar (1281), compiled under Guo Shoujing, took the year as 365.2425 days, as accurate as today's Gregorian calendar and three centuries earlier; in the Song Qin Jiushao's Mathematical Treatise in Nine Sections gave the "method of finding unity" (solution of simultaneous congruences) more than five hundred years before Europe, and the "positive and negative extraction of roots" was a numerical method for higher equations. Official mathematical education from the Eastern Han and the "Ten Mathematical Classics" institutionalized the tradition. Chinese mathematics valued practical use and computational technique, running parallel to the Greek axiomatic tradition — another main trunk of world mathematics.