When it came to explaining the movements of the "wandering stars," or planets, as we term them, the Ptolemaic theory was very happy in so far as accuracy was concerned, but very unhappy when it had to account for the actual mechanics of the cosmos in space. Sun and moon were the only bodies that went steadily onward, easterly: whereas all the others, Mercury, Venus, Mars, Jupiter, Saturn, although they moved easterly most of the time, nevertheless would at intervals slow down to stationary points, where for a time they did not move at all, and then actually go backward to the west, or retrograde, then become stationary again, finally resuming their regular onward motion to the east.
To help out of this difficulty, the worst possible mechanical scheme was invented, that known as the epicycle. Each of the five planets was supposed to have a fictitious "double," which traveled eastward with uniformity, attached to the end of a huge but mechanically impossible bar. The earth-centered circle in which this traveled round was called the "deferent." What this bar was made of, what stresses it would be subjected to, or what its size would have to be in order to keep from breaking—none of these questions seems to have agitated the ancient and medieval astronomers, any more than the flat-earth astronomy of the Hindu is troubled by the necessity of something to hold up the tortoise that holds up the elephant that holds up the earth.
But at the end of this bar is jointed or swiveled another shorter bar, to the revolving end of which is attached the actual planet itself; and the second bar, by swinging once round the end of the primary advancing bar, would account for the backward or retrograde motion of the planet as seen in the sky. For every new irregularity that was found, in the motion of Mars, for instance, a new and additional bar was requisitioned, until interplanetary space was hopelessly filled with revolving bars, each producing one of the epicycles, some large, some small, that were needed to take up the vagaries of the several planets.
The Arabic astronomers who kept the science alive through the Middle Ages added epicycle to epicycle, until there was every justification for Milton's verses descriptive of the sphere:
With Centric and Eccentric scribbled o'er,
Cycle and Epicycle, Orb in Orb.
CHAPTER VII
ASTRONOMY OF THE MIDDLE AGES
With the fall of Alexandria and the victory of Mohammed throughout the West, and a consequent decline in learning, supremacy in science passed to the East and centered round the caliphs of Bagdad in the seventh and eighth centuries. They were interested in astronomy only as a practical, and to them useful, science, in adjusting the complicated lunar calendar of the Mohammedans, in ascertaining the true direction of Mecca which every Mohammedan must know, and in the revival of astrology, to which the Greeks had not attached any particular significance.