For eight hundred years Islamic astronomy was the world's. In the Abbasid age the Abbasid dynasty's House of Wisdom translated Ptolemy's Almagest and the Indian Siddhantas; al-Khwarizmi and al-Battani reworked the precession, the tropical year and the obliquity, compiling the Zij star tables used for centuries after; for fixing prayer times and the qibla, spherical trigonometry was invented — the Arabic numerals and sexagesimal precision working together. In 1259 Hulegu engaged Nasir al-Din al-Tusi to build the Maragha observatory, whose 'Tusi couple' composed linear oscillation from two uniform circles — theory reaching Copernicus directly; in the 1420s Timur's grandson Ulugh Beg built the great-instrument observatory at Samarkand, measuring stellar positions with unmatched accuracy in the Zij of Ulugh Beg, used for centuries. The astrolabe and quadrant reached their perfection here. European universities used its tables in translation into the seventeenth century, and China's Yuan-Ming Muslim Astronomy Office (the astronomical office) borrowed its methods for the calendar — Islamic astronomy the most direct nurse of the astronomical revolution.