Babbage's Engines
1821 – 1991 · London and Turin

A calculating engine, finished a century and a half later.
See it in the room →Walk into the 3D room, in front of this workLondon, 1821. Charles Babbage began designing a machine to calculate and print tables of numbers. He called it the Difference Engine, after the method of finite differences on which it was based. The design called for about 25,000 parts. The government paid for it.
In 1832 Babbage had a demonstration piece assembled: about a seventh of the engine, with 2,000 parts. That same year a quarrel with the engineer Joseph Clement brought construction to a halt. In 1834 Babbage conceived a more ambitious machine, the Analytical Engine. It had a store to hold numbers and a mill to carry out operations, and it took its instructions from punched cards, an idea borrowed from the Jacquard loom. In 1842 the government withdrew its funding for good.
In 1840 Babbage explained the Analytical Engine in Turin. A military engineer, Luigi Federico Menabrea, wrote an account of it in French, which appeared in Geneva in October 1842. Charles Wheatstone asked Ada Lovelace to translate it into English. She worked on it for nine months and added seven notes, lettered A to G. Together the notes run to about three times the length of the article.
The translation appeared in September 1843, signed only with the initials A.A.L. In Note A, Lovelace wrote that the Analytical Engine weaves algebraic patterns just as the Jacquard loom weaves flowers and leaves. She also wrote that it could compose music, if the rules of harmony could be expressed in its language. In Note G she warned against overstatement: the engine has no pretensions to originate anything new.
Also in Note G, Lovelace set out step by step how the engine could calculate the Bernoulli numbers. She added a table showing every step for the seventh of those numbers. This table is often called the first published computer program. But the engine was never built, and the program never ran. And between 1837 and 1840 Babbage had already written other programs for the same machine in his notes.
Between 1847 and 1849 Babbage designed a second, simpler Difference Engine. When he died in 1871, none of his machines had been built in full.
In 1985 the Science Museum in London decided to build Difference Engine No. 2 from the original drawings. Doron Swade led the work. The team took care never to go beyond the precision Babbage could have achieved. In 1991, for the bicentenary of Babbage's birth, the calculating section was finished. With its printer it has about 8,000 parts, weighs five tonnes and works with 31-digit numbers. The printer was completed in 2002. The engine works just as Babbage conceived it.
What we don't know
Calling Ada Lovelace the first programmer is debated. Allan Bromley wrote that there is no evidence that Lovelace prepared a program for the Analytical Engine, and that she lacked the knowledge to do so. Dorothy Stein read the notes as a sign of their author's mathematical uncertainty. Bruce Collier credits her with a great contribution to making the engine known, but with no advance in its design. Stephen Wolfram, on the other hand, argues that it was she who led the calculation of the Bernoulli numbers. As for why the engines were never finished, the Computer History Museum observes that the 1991 build shows the precision of the parts was not the limit, and that politics, money and personalities weighed as heavily as the engineering.
Sources
- The Engines, Computer History Museum
- A Modern Sequel, Computer History Museum
- Sketch of the Analytical Engine, with Ada Lovelace's notes, Fourmilab
- Ada Lovelace, Wikipedia
Monsieur Le Blanc
Mary Anning's monsters
Sadi Carnot's reflections