
Charles Babbage's Difference Engine, first shown as a small model in 1822, was a mechanical calculator for producing mathematical tables without human error. His Analytical Engine, designed from the mid-1830s, went further: a machine that could be programmed with punched cards to carry out any calculation.
Around 1821 Babbage and his friend, the astronomer John Herschel, were checking tables worked out by hand for the Astronomical Society of London and found so many errors that Babbage exclaimed, 'I wish to God these calculations had been executed by steam.' The British government funded a full-sized Difference Engine, but work stopped in 1833 and the project was abandoned in 1842 after more than £17,000 had been spent. The Analytical Engine separated a 'store', where numbers were kept, from a 'mill', where calculations were done, much like a modern computer's memory and processor. Neither machine was finished in his lifetime. In 1991 London's Science Museum completed a Difference Engine No. 2 from his drawings, and it worked.



