Copyright © Philip M. Parker, INSEAD. Terms of Use.

DIFFERENCE ENGINE

Specialty Definition: DIFFERENCE ENGINE

DomainDefinition

Computing

Difference Engine Charles Babbage's design for the first automatic mechanical calculator. The Difference Engine was a special purpose device intended for the production of mathematical tables. Babbage started work on the Difference Engine in 1823 with funding from the British Government. Only one-seventh of the complete engine, about 2000 parts, was built in 1832 by Babbage's engineer, Joseph Clement. This was demonstrated successfully by Babbage and still works perfectly. The engine was never completed and most of the 12,000 parts manufactured were later melted for scrap. It was left to Georg and Edvard Schuetz to construct the first working devices to the same design which were successful in limited applications. The Difference Engine No. 2 was finally completed in 1991 at the Science Museum, London, UK and is on display there. The engine used gears to compute cumulative sums in a series of registers: r[i] := r[i] + r[i+1]. However, the addition had the side effect of zeroing r[i+1]. Babbage overcame this by simultaneously copying r[i+1] to a temporary register during the addition and then copying it back to r[i+1] at the end of each cycle (each turn of a handle). Difference Engine at the Science Museum (http://www.nmsi.ac.uk/on-line/treasure/plan/2ndcomp.htm#babbage). (1997-09-29). Source: The Free On-line Dictionary of Computing.

Source: compiled by the editor from various references; see credits.

Top     

Specialty Definition: Difference engine

(From Wikipedia, the free Encyclopedia)

A Difference engine is a mechanical special-purpose computer designed to tabulate polynomial functions. Since logarithmic and trigonometric functions can be approximated by polynomials, such a machine is more general than it appears at first.

History

The first of these devices was conceived in 1786 by J. H. Mueller. It was never built.

Difference engines were forgotten and then rediscovered in 1822 by Charles Babbage. This machine used the decimal numbers system and was powered by cranking a handle. The British government first financed the project but then later cut off support. Babbage went on to design his much more general analytical engine but later returned and produced an improved design (his "Difference Engine No. 2") between 1847 and 1849. Inspired by Babbage's difference engine plans, George Scheutz built several difference engines from 1855 onwards; one was sold to the British government in 1859.

Based on Babbage's original plans, the London Science Museum constructed a working Difference Engine No. 2 from 1989 to 1991. In 2000, the printer originally designed by Babbage was also completed. Both worked flawlessly. The difference engine and printer were constructed to tolerances achievable with 19th century technology, resolving a long-standing debate whether Babbage's design would actually have worked.

Method of Differences

The principle of a difference engine is Newton's method of differences. It may be illustrated with a small example. Consider the quadratic polynomial

p(x) = 2x2 - 3x + 2
and suppose we want to tabulate the values p(0), p(0.1), p(0.2), p(0.3), p(0.4) etc. The table below is constructed as follows: the first column contains the values of the polynomial, the second column contains the differences of the two left neighbors in the first column, and the third column contains the differences of the two neighbors in the second column:

p(0)=2.0
2.0-1.72=0.28
p(0.1)=1.72 0.28-0.24=0.04
1.72-1.48=0.24
p(0.2)=1.48 0.24-0.20=0.04
1.48-1.28=0.20
p(0.3)=1.28 0.20-0.16=0.04
1.28-1.12=0.16
p(0.4)=1.12

Notice how the values in the third row are constant. This is no coincidence. In fact, if you start with any polynomial of degree n, the column number n + 1 will always be constant. This crucial fact makes the method work, as we will see next.

We constructed this table from the left to the right, but now we can continue it from the right to the left in order to compute more values of our polynomial.

To calculate p(0.5) we use the values from the lowest diagonal. We start with the rightmost column value of 0.04. Then we continue the second column by subtracting 0.04 from 0.16 to get 0.12. Next we continue the first column by taking its previous value, 1.12 and subtracting the 0.12 from the second column. Thus p(0.5) is 1.12-0.12 = 1.0. In order to compute p(0.6), we iterate the same algorithm on the p(0.5) values: take 0.04 from the third column, subtract that from the second column's value 0.12 to get 0.08, then subtract that from the first column's value 1.0 to get 0.92, which is p(0.6).

This process may be continued ad infinitum. The values of the polynomial are produced without ever having to multiply. A difference engine only needs to be able to subtract. From one loop to the next, it needs to store 2 numbers in our case (the last elements in the first and second columns); if we wanted to tabulate polynomials of degree n, we'd need enough storage to hold n numbers.

Babbage's difference engine No. 2, finally built in 1991, could hold 7 numbers of 31 decimal digits each and could thus tabulate 7th degree polynomials to that precision. The best machines from Scheutz were able to store 4 numbers with 15 digits each.

See also: The Difference Engine

External links

Source: adapted by the editor from Wikipedia, the free encyclopedia under a copyleft GNU Free Documentation License (GFDL) from the article "Difference engine."

Top     

Synonyms within Context: DIFFERENCE ENGINE

ContextSynonyms within Context (source: adapted from Roget's Thesaurus).

Numeration

Abacus, logometer, slide rule, slipstick, tallies, Napier's bones, calculating machine, difference engine, suan-pan; adding machine; cash register; electronic calculator, calculator, computer;

Source: adapted from Roget's Thesaurus.

Top     

Crosswords: DIFFERENCE ENGINE

Specialty definitions using "DIFFERENCE ENGINE": Analytical Engine. (references)

Top     

Frequency of Internet Keywords: DIFFERENCE ENGINE

The following statistics estimate the number of searches per day across the major English-language search engines as identified by various trade publications. Hyperlinks lead to commercial use of the expression at Amazon.com.
 
ExpressionFrequency
per Day

difference engine

27

babbage charles difference engine

2

between difference engine engine meta search search

2
Source: compiled by the editor from various references; see credits.

Top     

Modern Translation: DIFFERENCE ENGINE

Language Translations for "DIFFERENCE ENGINE"; alternative meanings/domain in parentheses.

Japanese Kanji 

  

差機関 . (various references)

   

Japanese Katakana 

  

さきか". (various references)

   

Pig Latin

  

ifferenceday engineay

Source: compiled by the editor from various translation references.

Top     

Anagrams: DIFFERENCE ENGINE

Scrabble® Enable2K-Verified Anagrams

Words within the letters "c-d-e-e-e-e-e-f-f-g-i-i-n-n-n-r"

-4 letters: differencing, indifference.

Source: compiled by the editor from various references; see credits.

SCRABBLE® is a registered trademark. All intellectual property rights in and to the game are owned in the U.S.A and Canada by Hasbro Inc., and throughout the rest of the world by J.W. Spear & Sons Limited of Maidenhead, Berkshire, England, a subsidiary of Mattel Inc. Mattel and Spear are not affiliated with Hasbro.

Top     



INDEX

1. Crosswords
2. Expressions: Internet
3. Translations: Modern
4. Anagrams
5. Bibliography


  

Copyright © Philip M. Parker, INSEAD. Terms of Use.