Friday, September 28, 2007

The Enchantress of Numbers


Augusta Ada Byron, during a nine-month period in 1842-1843, Ada translated Italian mathematician Luigi Menabrea's memoir on Charles Babbage's newest proposed machine, the Analytical Engine. With the article, she appended a set of notes which specified in complete detail a method for calculating Bernoulli numbers with the Engine, recognized by historians as the world's first computer program, making Ada Lovelace the first programmer in history.

Ada received tutoring in mathematics and music, as disciplines to counter dangerous poetic tendencies (her father, the reprobate Lord Byron, was a poet, libertine, lecher and other things aside). But Ada's complex inheritance became apparent as early as 1828, when she produced the design for a flying machine. It was mathematics that gave her life its wings.

One of the gentlemanly scientists of the era was to become Ada's lifelong friend. Charles Babbage, Lucasian professor of mathematics at Cambridge, was known as the inventor of the Difference Engine, an elaborate calculating machine that operated by the method of finite differences. Ada met Babbage in 1833, when she was just 17, and they began a voluminous correspondence on the topics of mathematics, logic, and ultimately all subjects.

Babbage was an English mathematician, philosopher, mechanical engineer and (proto-) computer scientist who originated the idea of a programmable computer.

Babbage designed his "difference engine" like his other steam-powered mechanical monsters. It's basic architecture was astonishingly similar to a modern computer. The data and program memory were separated, operation was instruction based, the control unit could make conditional jumps and the machine had a separate I/O unit.

Ada called herself "an Analyst (& Metaphysician)," and the combination was put to use in the Notes. She understood the plans for the device as well as Babbage but was better at articulating its promise. She rightly saw it as what we would call a general-purpose computer. It was suited for "developping [sic] and tabulating any function whatever. . . the engine [is] the material expression of any indefinite function of any degree of generality and complexity." Her Notes anticipate future developments, including computer-generated music.

Babbage wrote the following on the subject, in his Passages from the Life of a Philosopher (1846):

I then suggested that she add some notes to Menabrea's memoir, an idea which was immediately adopted. We discussed together the various illustrations that might be introduced: I suggested several but the selection was entirely her own. So also was the algebraic working out of the different problems, except, indeed, that relating to the numbers of Bernoulli, which I had offered to do to save Lady Lovelace the trouble. This she sent back to me for an amendment, having detected a grave mistake which I had made in the process.

Lovelace's prose also acknowledged some possibilities of the machine which Babbage never published, such as speculating that "the Engine might compose elaborate and scientific pieces of music of any degree of complexity or extent."

Ada died of cancer in 1852, at the age of 37, and was buried beside the father she never knew. Her contributions to science were resurrected only recently, but many new biographies attest to the fascination of Babbage's "Enchantress of Numbers."

Over one hundred years after her death, in 1953, Ada Lovelace's notes on Babbage's Analytical Engine were republished after being forgotten. The engine now has been recognized as an early model for a computer and Ada Lovelace's notes as a description of a computer and software. The modern computer programming language Ada is named in her honour.

If the Analytical Engine had been built, it would have been in many ways more advanced than some of the first computers that emerged in the 1940s. It would have been digital, programmable and Turing complete. Unfortunately, in 1878, a committee of the British Association for the Advancement of Science recommended against constructing the analytical engine, which sank Babbage's efforts for government funding.


As for the Difference Engine, it was finally completed from his original plans, in 1991. Built to tolerances achievable in the 19th century, the finished engine functioned perfectly.

We can only imagine what would have happened if the benefits of the Difference Engine had been available in Victorian society. Very much like Leonardo DaVinci's discoveries, kept secret instead of being published, they might have started the age of computers a century earlier!


This bust of Lady Lovelace is in the Babbage-Lovelace park in the Babbage Canals sim.

No comments:

Post a Comment