His life

Of Ptolemy’s life we know almost nothing that is not in his own works. His name, Claudius, indicates that he was a Roman citizen, and Ptolemy, that he was a Greek of Egypt, unrelated to the kings of the same name. All his dated observations were made in Alexandria between March 26, 127, and February 2, 141, and around 146–147 he set up an inscription in a temple at Canopus with the parameters of his models. That is why it is accepted that he was born around the year 100 and died around 170. Later Arabic sources add anecdotes and a physical description that nobody can verify.
He worked in Roman Alexandria, when the Museum and the Library had already spent four centuries gathering Greek texts and Babylonian records. Ptolemy had at hand Hipparchus, Apollonius, the eclipse tables of Babylon and the observations of his contemporary Theon of Smyrna. He was, above all, a synthesizer with mathematical talent: he took the best from everyone and turned it into a system.
The Almagest

His major work was entitled Mathematical Composition (Mathematike Syntaxis). Readers called it “the greatest”, in Greek megiste, and the Arabic translators of the 9th century turned that into al-Majisti; hence Almagest. It is thirteen books that form a complete course: trigonometry (a table of chords in steps of half a degree), the celestial sphere, the motion of the Sun, that of the Moon, eclipses, the fixed stars and, in the last five books, the planets.
Each chapter follows the same scheme: dated observations, a geometric model, the derivation of its parameters and tables for computing the position of the body on any date. That structure, observe, model, tabulate, is the one astronomy still follows. The catalog of books VII and VIII contains 1 025 stars (1 022 distinct ones) with longitude, latitude and magnitude, grouped into 48 constellations: Orion, Ursa Major, Scorpius, Andromeda and the others that remain in the official sky of the International Astronomical Union.
The model is geocentric: Earth sits motionless at the center, and Ptolemy devotes a chapter to refuting with physical arguments the idea that it could move. Since 1543 we have known that on that point he was wrong. But the Almagest was not accepted for fourteen centuries on authority, but because it worked: with its tables, an astronomer in Baghdad, Toledo or Kraków could predict an eclipse or the position of Mars to within a few degrees.
Epicycles and the equant

The problem Ptolemy solved was that of the planets, which advance across the sky, stop, move backward and advance again. Apollonius and Hipparchus had proposed the epicycle: a small circle whose center travels along a larger one (the deferent). Ptolemy added two ingredients. First, he offset the deferent from Earth (the eccentric). Second, he invented the equant: a point, the mirror image of Earth with respect to the center of the deferent, from which the center of the epicycle appears to move at constant angular speed.
The equant was a geometric heresy, because it broke the rule of uniform circular motions, and throughout the Middle Ages attempts were made to eliminate it. Today we know why it worked so well: for an elliptical orbit of low eccentricity, an equant placed at the empty focus reproduces Kepler’s second law almost exactly. Ptolemy had found, without knowing it, a very good approximation to the true physics of planetary motion.
Ptolemy wrote much more. The Handy Tables simplified the calculations of the Almagest and were the model for all the Arabic and Latin astronomical tables (the zij). The Planetary Hypotheses nested the spheres of the planets one inside another and thus gave the universe a size: 20 000 Earth radii to the stars. The Geography taught how to draw maps with latitude and longitude and gave the coordinates of some 8 000 places. The Optics studied reflection and refraction, including that of the atmosphere. And the Tetrabiblos was the most widely read astrology manual in history.
His legacy

Few books have had such a long life. The Almagest was translated into Arabic in the 9th century, was commented on and corrected in Baghdad, Isfahan and Maragha, reached Latin in 1175 through Gerard of Cremona in Toledo and was printed in 1515. Copernicus took it as a literal model for De revolutionibus: same books, same tables, same methods, but with the Sun at the center. Tycho Brahe, Kepler and Galileo learned it by heart before surpassing it.
His reputation has swung back and forth. In 1977 Robert Newton accused him of having fabricated observations to make them fit his models, and it is true that some of his “observations” look computed. But the current consensus, after the work of Toomer, Jones and Pedersen, is more nuanced: Ptolemy selected and adjusted data as all ancient astronomers did, and his work is, by far, the most valuable source we have on Greek science. The 48 constellations, the magnitude scale, ecliptic coordinates and the very idea that the sky is computed with tables are part of his heritage. A lunar crater and the asteroid (4001) Ptolemaeus bear his name.