The bronze fragments of an ancient Greek device have puzzled scholars for more than a century after they were recovered from the bottom of the Mediterranean Sea, where they had lain since about 80 BC. Now, using advanced imaging technology, scientists have solved the mystery of its intricate workings. Unmatched in complexity for a thousand years, the mechanism functioned as the world's first analog computer, calculating the movements of the sun, moon,...