The Almagest is a 2nd-century mathematical and astronomical treatise on the apparent motions of the stars and planetary paths. Written in Greek by Claudius Ptolemy, a Roman era scholar of Egypt, it is one of the most influential scientific texts of all time, with its geocentric model accepted for more than twelve hundred years from its origin in Hellenistic Alexandria, in the medieval Byzantine and Islamic worlds, and in Western Europe through the Middle Ages and early Renaissance until Copernicus.
The Almagest is the critical source of information on ancient Greek astronomy. It has also been valuable to students of mathematics because it documents the ancient Greek mathematician Hipparchus's work, which has been lost. Hipparchus wrote about trigonometry, but because his works no longer exist, mathematicians use Ptolemy's book as their source for Hipparchus's work and ancient Greek trigonometry in general.