Thursday, September 1, 2011

The First Arithmetic Textbook in the Western World

Image courtesy of the Riccardiana Library in Florence.

The image above shows the initial page of the first arithmetic textbook in the western world. Written (in vernacular Italian) around 1290 CE by an unknown author in Umbria, it begins with the declaration: “This is the book of abacus according to the opinion of master Leonardo of the house of sons of Bonacie from Pisa.”

Wait a minute? Doesn’t everyone know that Leonardo of Pisa’s Liber abbaci was the first arithmetic textbook? Isn’t that the story I tell in my recent book The Man of Numbers: Fibonacci’s Arithmetic Revolution?

Not quite. Liber abbaci, completed in 1202, was the first comprehensive description of modern arithmetic (using the Hindu-Arabic numerals, decimal place-value representations of numbers, and the basic arithmetic algorithms we all learn in school) in the western world. But it was not really a textbook. Its mammoth length and the fact that it was written in Latin made it accessible only to scholars.

Smart man that he was, Leonardo recognized that, and wrote a shorter, simpler book, aimed at merchants and businessmen. Unfortunately, though copies of most of Leonardo’s works survived (no original Leonardo manuscript did), there are no known copies of his smaller book for merchants. We know he wrote it because he refers to it in Liber abbaci, calling it his liber minoris guise (“book in a smaller manner”), and because other authors referred to it. Those other references suggest that it most likely comprised material from the first ten chapters of Liber abbaci together with parts of one of Leonardo’s other books, De Practica Geometriae, but exactly what its contents were, no one knew.

Until 2003, that is, when mathematics historian Rafaella Franci, who directs the Center for the Study of Medieval Mathematics at the University of Siena, published the results of a remarkable study of a manuscript she came across in the Biblioteca Riccardiana in Florence. The manuscript is anonymous, and occupies pages 1 to 178 of the library’s Codex 2404. The work itself is undated, but dates in some of the problems place its writing at around 1290, and the vernacular language used places it in the Umbria region.

The book (known as Livero de l’abbecho — “Book of calculation” — from the anonymous author’s introduction) is divided into thirty-one short chapters. It is not an original work. Roughly three-quarters of the problems are faithful translations into the vernacular of problems in Liber Abbaci. Of particular note to a modern reader, it includes Fibonacci’s famous rabbits problem, though recast in terms of pigeons. The book was clearly written for a wide audience, since the author began each problem type with simpler problems than those in Liber abbaci.

Could this be a copy of Leonardo’s lost “book for merchants”? Or did the unknown author get the material from Liber abbaci? Since the writer gives no indication of having any particular mathematical skill, it seemed unlikely he could have carried out the difficult task of simplifying the sophisticated descriptions found in Liber abbaci. Moreover, his text included material on geometry that is hardly mentioned in Liber abbaci. It could, however, have come from De Practica Geometriae.

Even more intriguing, the Umbrian’s book had three chapters on calculating interest and depreciation, a topic not covered in Liber abbaci at all. This material was obviously included to make the treatise more useful to merchant readers, but where did it come from?

So here we have a manuscript written around 1290 that provides a much simplified account of the novel, and for the times highly sophisticated mathematics in two of Leonardo’s long, dense scholarly texts, coupled with some novel material on financial matters. The author of the manuscript gives no indication of having any particular mathematical ability, so he must have simply copied it from a single source. It is, in short, a medieval equivalent of a photocopy. But a photocopy of what?

There was only one mathematician at that time who had the ability to write the photocopy’s source: Leonardo. Which means that the manuscript in the Riccardiana Library is not only the oldest known textbook on practical arithmetic in the western world, it must in fact be a copy of Leonardo’s lost “book for merchants. A conclusion that has been confirmed by other studies since Franci reported her findings.

For more details, see my recent book The Man of Numbers and the companion e-book Leonardo and Steve, (where I compare Leonardo with Steve Jobs, a man of our age very much in the news of late).

Monday, August 1, 2011

The First Personal Computing Revolution

The young man could hardly contain his excitement. He was sure the invention he had just seen could change the world. It would usher in a new era of personal computing. No longer would a businessman or trader have to rely on a member of the select brotherhood of computing professionals to crunch the numbers. He could do it himself.

The people who showed him the invention were fascinated by how it worked, but they clearly did not see what the young man could: its huge commercial potential. As so often happens in history, the right person was in the right place at the right time. Not only had the young man shown mathematical talent at an early age, he had grown up in what was then the acknowledged world capital for innovation, particularly in the business world. He also had the savvy to know how to make the invention available to ordinary citizens. The trick was to package and market it to them directly, in a way that they could at once appreciate and understand.

Within a few years, the young man had succeeded beyond all expectations - save perhaps for his own far-sighted vision. The personal computing revolution was underway, new businesses were being created, new ways of carrying out international trade and commerce were developing, new financial institutions were being established, and new fortunes were being made. The world would never be the same again.

To readers familiar with the story behind the development of the Macintosh computer, the above sounds like a description of Steve Jobs' legendary visit to the Xerox Palo Alto Research Center (PARC) in December 1979. Working in secret for several years, PARC's hundred or so computer engineers and designers had been developing most of the components of modern personal computing, including the windows-mouse-pointer system for displaying files and navigating through the computer's memory, the Ethernet, the laser printer, and a concept called object-oriented programming that made such systems possible. Although Xerox, the parent company, was unable to see the commercial value of what their money had bought, Jobs certainly did. Four years later, Apple released the Macintosh computer, a consumer implementation of PARC's system, followed soon afterwards by the Apple LaserWriter, that made another PARC invention, the laser printer, into a successful consumer product. The modern era of easy-to-use, personal computing was born.

But the young man I was referring to lived eight hundred years earlier, in medieval Italy. The personal computing revolution that began in Silicon Valley in the 1970s and 80s was actually the second the world had seen. The man who started the world's first personal computing revolution lived in the Italian city of Pisa from around 1170 to maybe 1250. His name was Leonardo Pisano (Leonardo of Pisa), but he is better known today by a nickname given to him by a historian in the early nineteenth century: Fibonacci, a name derived from the Latin filius Bonacci, which translates literally as "son of Bonacci".

Most people associate his name with the "Fibonacci numbers," a sequence generated by starting with the pair 1, 1 and obtaining each successive number by adding together the previous two: 1, 1, 2 (=1+1), 3 (=1+2), 5 (=2+3), 8, 13, 21, 34, 53, 87, etc. These numbers arise frequently when you count things in plants (such as leaves, petals, spirals), for which there is a scientific explanation, and are believed by some to be of use predicting the behavior of the financial markets (which you have to take as a matter of faith). The sequence's connection with Leonardo is tenuous to say the least. It was known long before he was born, and there is no evidence Leonardo had any interest in it whatsoever. In his arithmetic book Liber abbaci, published in 1202, one of the many hundreds of problems he gave required the reader to generate the sequence to get the answer, and that one connection led a French mathematician to name them the Fibonacci numbers in the 1870s. That is all there is to it.

But Leonardo has a far more substantial claim to fame than the number sequence now named after him: he started the first personal computing revolution and thereby launched the modern financial and commercial world.

"Ah," I can almost hear you sigh, "Devlin is going to describe how Leonardo's Liber abbaci introduced Hindu-Arabic arithmetic into Western Europe."

Well, sort of. But the story is far more complex than you may have heard. We know from the introduction Leonardo wrote in Liber abbaci that, as a young man, he traveled to the North African trading port of Bugia, where he saw Arabic speaking traders using a strange new method to carry out the calculations to complete their trades. We also know that upon his return to Pisa he did write his book Liber abbaci (the double-b indicating that it was the "Book of Calculating", not the "book of the abacus"). Moreover, the book did describe the powerful and efficient Hindu-Arabic arithmetic. So far, this sounds just like the Steve Jobs - Xerox PARC episode, with Leonardo's Liber abbaci playing the role Apple's Macintosh computer subsequently would. But then the story becomes murky.

Though Liber abbaci was undoubtedly one of the first descriptions of Hindu-Arabic arithmetic in western Europe, and though the decades that followed saw the fairly rapid dissemination of the new methods, with hundreds of supposedly derivative arithmetic texts being written, the problem that always faced anyone tempted to read causality into this sequence of events was that there were no records showing how the material passed from the parchment leaves of Leonardo's manuscript onto the pages of those subsequent texts.

In fact, there is good reason to believe that hardly anyone ever read Liber abbaci. For, though writers of the subsequent texts copied passages (and often entire books) from one another, virtually none of those texts had any passages in common with Leonardo's much more scholarly tome - that in an era where all books were handwritten and where it was accepted practice for writers to copy freely from the works of others.

That tantalizing (and frustrating) puzzle was finally solved in 2003, when the close examination of a hitherto ignored thirteenth century manuscript in a library in Florence provided the final, crucial step of a two-hundred-year train of painstaking archival forensics work that stretched back to the end of the eighteenth century. As a result, we now know that Leonardo of Pisa played a role in the development of today's world every bit as great as Copernicus or Galileo. Indeed, it turns out that the parallels between the introduction of Hindu-Arabic arithmetic to western Europe in thirteenth century Italy and the introduction of modern personal computing (as an easy-to-use consumer product) in 1980s California are remarkable, down to fine details.

I'll give you one of those fine details. When Jobs left PARC, the first computer he developed having a windows-mouse-pointer interface was called the Lisa, but it was too large and too expensive to be a successful consumer product, and he abandoned it for the smaller, cheaper Macintosh he developed next. Likewise, Leonardo realized that Liber abbaci was too big and contained too much heavy-duty mathematics to be useful to the commercial men in Italy, and so he wrote a smaller, cheaper, simpler version. Unfortunately, though copies of Liber abbaci survived, there were no known extant copies of his smaller book. Until, that is, the start of the twenty-first century, when University of Siena mathematical historian Rafaella Franci opened the pages of Codex 2404 in the Riccardiana Library in Florence.

Next month, I'll tell you about (and show you some pages from) that recently discovered manuscript, and explain how it allowed historians to piece together what is probably the greatest episode in the development of modern society you never heard of.

In the meantime, I talked with NPR host Scott Simon about Leonardo and his book Liber abbaci, in my Math Guy slot on Weekend Edition (July 16), and you can learn more of his story there.

This month's column is adapted from the introduction to my recent e-book Leonardo and Steve: The Young Genius Who Beat Apple to Market by 800 Years. In that book (known in the publishing world as a "short" - it's under 15,000 words) I draw out the many parallels, some of them uncanny, between the two personal computing revolutions.

NOTE: The above collage (which I put together myself from publicly available sources) includes a page from a thirteenth century manuscript copy of Liber abbaci, courtesy of the Siena Public Library in Italy. The line drawing, from an etching of unknown but relatively recent origin, is purportedly of Leonardo, but widely believed to be a work of fiction.