Trisha Shetty (Editor)

Pascal's calculator

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Pascal's calculator

Pascal's calculator (also known as the arithmetic machine and later as the Pascaline) is a mechanical calculator invented by Blaise Pascal in the early 17th century. Pascal was led to develop a calculator by the laborious arithmetical calculations required by his father's work as supervisor of taxes in Rouen. He designed the machine to add and subtract two numbers directly and to perform multiplication and division through repeated addition or subtraction.

Contents

Pascal's calculator was especially successful in the design of its carry mechanism, which adds 1 to 9 on one dial, and when it changes from 9 to 0, carries 1 to the next dial. His innovation made each digit independent of the state of the others, which enabled multiple carries to rapidly cascade from one digit to another regardless of the machine's capacity. Pascal was also the first to shrink and adapt for his purpose a lantern gear, used in turret clocks and water wheels, which could resist the strength of any operator input with very little added friction.

Pascal designed the machine in 1642, and after 50 prototypes, he presented it to the public in 1645, dedicating it to Pierre Séguier, then chancellor of France. Pascal built around twenty more machines during the next decade, many of which improved on his original design. In 1649, King Louis XIV of France gave Pascal a royal privilege (similar to a patent), which gave him the exclusive right to design and manufacture calculating machines in France.

Other later developments often reflected aspects of the Pascaline, either because they were actually inspired by it or at least shaped by the same historical influences which led Pascal to develop his invention. Gottfried Leibniz invented his Leibniz wheels after 1671 after trying to add an automatic multiplication feature to the Pascaline. In 1820, Thomas de Colmar designed his arithmometer. It is not at all clear whether he ever saw Leibniz's device, but he either re-invented it or utilised Leibniz's invention of the step drum. The arithmometer was the first mechanical calculator strong enough and reliable enough to be used daily in an office environment.

Pascal was also influential in seeking to commercialise his machine (albeit with only limited success).

Nine Pascal calculators have been made, including the first surviving mechanical calculator from the 17th century. Most of them are on display in European museums.

Pascal has been called and celebrated as the inventor of the mechanical calculator.

History

Pascal began to work on his calculator in 1642, when he was 19 years old. He had been assisting his father, who worked as a tax commissioner, and sought to produce a device which could reduce some of his workload. Pascal received a Royal Privilege in 1649 that granted him exclusive rights to make and sell calculating machines in France.

By 1654 he had sold about twenty machines, but the cost and complexity of the Pascaline was a barrier to further sales and production ceased in that year. By that time Pascal had moved on to the study of religion and philosophy, which gave us both the Lettres provinciales and the Pensées.

The tercentenary celebration of Pascal's invention of the mechanical calculator occurred during WWII when France was occupied by Germany and therefore the main celebration was held in London, England. Speeches given during the event highlighted Pascal's practical achievements when he was already known in the field of pure mathematics, and his creative imagination, along with how ahead of their time both the machine and its inventor were.

Design

The calculator had spoked metal wheel dials, with the digit 0 through 9 displayed around the circumference of each wheel. To input a digit, the user placed a stylus in the corresponding space between the spokes and turned the dial until a metal stop at the bottom was reached, similar to the way a rotary telephone dial is used. This displayed the number in the windows at the top of the calculator. Then, one simply redialed the second number to be added, causing the sum of both numbers to appear in the accumulator.

Each dial is associated with a one-digit display window located directly above it, which displays the value of the accumulator for this position. The complement of this digit, in the base of the wheel (6, 10, 12, 20), is displayed just above this digit. A horizontal bar hides either all the complement numbers when it is slid to the top, or all the direct numbers when it is slid toward the center of the machine. It thereby displays either the content of the accumulator or the complement of its value.

Since the gears of the calculator rotated in only one direction, negative numbers could not be directly summed. To subtract one number from another, the method of nine's complement was used. The only two differences between an addition and a subtraction are the position of the display bar (direct versus complement) and the way the first number is entered (direct versus complement).

For a 10-digit wheel (N), the fixed outside wheel is numbered from 0 to 9 (N-1). The numbers are inscribed in a decreasing manner clockwise going from the bottom left to the bottom right of the stop lever. To add a 5, one must insert a stylus between the spokes that surround the number 5 and rotate the wheel clockwise all the way to the stop lever. The number displayed on the corresponding display register will be increased by 5 and, if a carry transfer takes place, the display register to the left of it will be increased by 1. To add 50, use the tens input wheel (second dial from the right on a decimal machine), to add 500, use the hundreds input wheel, etc...

On all the wheels of all the known machines, except for the machine tardive, two adjacent spokes are marked; these marks differ from machine to machine. On the wheel pictured on the right, they are drilled dots, on the surveying machine they are carved; some are just scratches or marks made with a bit of varnish, some were even marked with little pieces of paper.

These marks are used to set the corresponding cylinder to its maximum number, ready to be re-zeroed. To do so, the operator inserts the stylus in between these two spokes and turns the wheel all the way to the stopping lever. This works because each wheel is directly linked to its corresponding display cylinder (it automatically turns by one during a carry operation). To mark the spokes during manufacturing, one can move the cylinder so that its highest number is displayed and then mark the spoke under the stopping lever and the one to the right of it.

Four of the known machines have inner wheels of complements, which were used to enter the first operand in a subtraction. They are mounted at the center of each spoked metal wheel and turn with it. The wheel displayed in the picture above has an inner wheel of complements but the numbers written on it are barely visible. On a decimal machine, the digits 0 through 9 are carved clockwise, with each digit positioned between two spokes so that the operator can directly inscribe its value in the window of complements by positioning his stylus in between them and turning the wheel clockwise all the way to the stop lever. The marks on two adjacent spokes flank the digit 0 inscribed on this wheel.

On four of the known machines, above each wheel, a small quotient wheel is mounted on the display bar. These quotient wheels, which are set by the operator, have numbers from 1 to 10 inscribed clockwise on their peripheries (even above a non-decimal wheel). Quotient wheels seem to have been used during a division to memorize the number of times the divisor was subtracted at each given index.

Inner mechanism

Pascal went through 50 prototypes before settling on his final design; we know that he started with some sort of calculating clock mechanism that used springs which apparently "works by springs and which has a very simple design", was used "many times" and remained in "operating order". Nevertheless, "while always improving on it" he found reason to try to make the whole system more reliable and robust. Eventually he adopted a component of very large clocks, shrinking and adapting for his purpose the robust gears that can be found in a turret clock mechanism called a lantern gear, itself derived from a water wheel mechanism. This could easily handle the strength of an operator input.

Pascal adapted a pawl and ratchet mechanism to his own turret wheel design; the pawl prevents the wheel from turning counterclockwise during an operator input, but it is also used to precisely position the display wheel and the carry mechanism for the next digit when it is pushed up and lands into its next position. Because of this mechanism, each number displayed is perfectly centered in the display window and each digit is precisely positioned for the next operation. This mechanism would be moved six times if the operator dialed a six on its associated input wheel.

Carry mechanism

The sautoir is the centerpiece of the pascaline's carry mechanism. In his "Avis nécessaire...", Pascal noted that a machine with 10,000 wheels would work as well as a machine with two wheels because each wheel is independent of the other. When it is time to propagate a carry, the sautoir, under the sole influence of gravity, is thrown toward the next wheel without any contact between the wheels. During its free fall the sautoir behaves like an acrobat jumping from one trapeze to the next without the trapezes touching each other ("sautoir" comes from the French verb sauter, which means to jump). All the wheels (including gears and sautoir) have therefore the same size and weight independently of the capacity of the machine.

Pascal used gravity to arm the sautoirs. One must turn the wheel five steps from 4 to 9 in order to fully arm a sautoir, but the carry transfer will move the next wheel only one step. Thus much extra energy is accumulated during the arming of a sautoir.

All the sautoirs are armed by either an operator input or a carry forward. To re-zero a 10,000-wheel machine, if one existed, the operator would have to set every wheel to its maximum and then add a 1 to the "unit" wheel. The carry would turn every input wheel one by one in a very rapid Domino effect fashion and all the display registers would be reset.

The carry transmission has three phases:

  1. The first phase happens when the display register goes from 4 to 9. The two carry pins (one after the other) lift the sautoir pushing on its protruding part marked (3,4,5). At the same time the kicking pawl (1) is pulled up, using a pin on the receiving wheel as guidance, but without effect on this wheel because of the top pawl/ratchet (C). During the first phase, the active wheel touches the one that will receive the carry through the sautoir, but it never moves it or modifies it and therefore the status of the receiving wheel has no impact whatsoever on the active wheel.
  2. The second phase starts when the display register goes from 9 to 0. The kicking pawl passes its guiding pin and its spring (z,u) positions it above this pin ready to push back on it. The sautoir keeps on moving up and suddenly the second carry pin drops it. The sautoir falls of its own weight. During the second phase, the sautoir and the two wheels are completely disconnected.
  3. The kicking pawl (1) pushes the pin on the receiving wheel and starts turning it. The upper pawl/ratchet (C) is moved to the next space. The operation stops when the protruding part (T) hits the buffer stop (R). The upper pawl/ratchet (C) positions the entire receiving mechanism in its proper place. During the third phase the sautoir, which no longer touches the active wheel, adds one to the receiving wheel.

Operation

The Pascaline is a direct adding machine (it has no crank), so the value of a number is added to the accumulator as it is being dialed in. By moving a display bar, the operator can see either the number stored in the calculator or the complement of its value. Subtractions are performed like additions using some properties of 9's complement arithmetic.

9's complement

The 9's complement of any one digit decimal number d is 9−d. So the 9's complement of 4 is 5 and the 9's complement of 9 is 0. Similarly the 11's complement of 3 is 8.

In a decimal machine with n dials the 9's complement of a number A is:

CP(A) = 10n − 1−A

and therefore the 9's complement of (A−B) is:

CP(A−B) = 10n −1 − (A−B) = 10n −1 − A + B = CP(A) + B CP(A−B) = CP(A) + B

In other words, the 9's complement of the difference of two numbers is equal to the sum of the 9's complement of the minuend added to the subtrahend. The same principle is valid and can be used with numbers composed of digits of various bases (base 6, 12, 20), like in the surveying or the accounting machines.

This can also be extended to:

CP(A−B−C−D) = CP(A) + B + C + D

This principle applied to the pascaline:

Resetting the machine

The machine has to be re-zeroed before each new operation. To reset his machine, the operator has to set all the wheels to their maximum, using the marks on two adjacent spokes, and then add 1 to the rightmost wheel.

The method of re-zeroing that Pascal chose, which propagates a carry right through the machine, is the most demanding task for a mechanical calculator and proves, before each operation, that the machine is fully functional. This is a testament to the quality of the Pascaline because none of the 18th century criticisms of the machine mentioned a problem with the carry mechanism and yet this feature was fully tested on all the machines, by their resets, all the time.

Addition

Additions are performed with the display bar moved closest to the edge of the machine, showing the direct value of the accumulator.

After re-zeroing the machine, numbers are dialed in one after the other.

The following table shows all the steps required to compute 12,345 + 56,789 = 69,134

Subtraction

Subtractions are performed with the display bar moved closest to the center of the machine showing the complement value of the accumulator.

The accumulator contains CP( A ) during the first step and CP( A−B) after adding B. In displaying that data in the complement window, the operator sees CP( CP( A)) which is A and then CP(CP( A−B )) which is (A−B). It feels like an addition since the only two differences in between an addition and a subtraction are the position of the display bar (direct versus complement) and the way the first number is entered (direct versus complement).

The following table shows all the steps required to compute 54,321−12,345=41,976

Uses

Pascalines came in both decimal and non-decimal varieties, both of which can be viewed in museums today. They were designed for use by scientists, accountants and surveyors. The simplest Pascaline had five dials; later variants had up to ten dials.

The contemporary French currency system used livres, sols and deniers with 20 sols to a livre and 12 deniers to a sol. Length was measured in toises, pieds, pouces and lignes with 6 pieds to a toise, 12 pouces to a pied and 12 lignes to a pouce. Therefore, the pascaline needed wheels in base 6, 10, 12 and 20. Non-decimal wheels were always located before the decimal part.

In an accounting machine (..10,10,20,12), the decimal part counted the number of livres (20 sols), sols (12 deniers) and deniers. In a surveyor's machine (..10,10,6,12,12), the decimal part counted the number of toises (6 pieds), pieds (12 pouces), pouces (12 lignes) and lignes. Scientific machines just had decimal wheels.

The decimal part of each machine is highlighted.

The metric system was adopted in France on December 10, 1799, by which time Pascal's basic design had inspired other craftsmen, although with a similar lack of commercial success.

Production

Most of the machines that have survived the centuries are of the accounting type. Seven of them are in European museums, one belongs to the IBM corporation and one is in private hands.

Achievements

Besides being the first calculating machine made public during its time, the pascaline is also:

  • the only operational mechanical calculator in the 17th century
  • the first calculator to have a controlled carry mechanism that allowed for an effective propagation of multiple carries
  • the first calculator to be used in an office (his father's to compute taxes)
  • the first calculator commercialized (with around twenty machines built)
  • the first calculator to be patented (royal privilege of 1649)
  • the first calculator to be described in an encyclopaedia (Diderot & d'Alembert, 1751)
  • the first calculator sold by a distributor
  • Competing designs

    In 1957, Franz Hammer, a biographer of Johannes Kepler, announced the discovery of two letters that Wilhelm Schickard had written to his friend Johannes Kepler in 1623 and 1624 which contain the drawings of a previously unknown working calculating clock, predating Pascal's work by twenty years. The 1624 letter stated that the first machine to be built by a professional had been destroyed in a fire during its construction and that he was abandoning his project. After careful examination it was found, in contradistinction to Franz Hammer's understanding, that Schikard's drawings had been published at least once per century starting from 1718.

    Bruno von Freytag Loringhoff, a mathematics professor at the University of Tübingen built the first replica of Schickard's machine but not without adding wheels and springs to finish the design. This detail is not described in Schickard's two surviving letters and drawings. A problem in the operation of the Schickard machine, based on the surviving notes, was found after the replicas were built. Schickard's machine used clock wheels which were made stronger and were therefore heavier, to prevent them from being damaged by the force of an operator input. Each digit used a display wheel, an input wheel and an intermediate wheel. During a carry transfer all these wheels meshed with the wheels of the digit receiving the carry. The cumulative friction and inertia of all these wheels could "...potentially damage the machine if a carry needed to be propagated through the digits, for example like adding 1 to a number like 9,999". The great innovation in Pascal's calculator was that it was designed so that each input wheel is totally independent from all the others and carries are propagated in sequence. Pascal chose, for his machine, a method of re-zeroing that propagates a carry right through the machine. It is the most demanding operation to execute for a mechanical calculator and proved, before each operation, that the carry mechanism of the Pascaline was fully functional. This could be taken as a testament to the quality of the Pascaline because none of the 18th century criticisms of the machine mentioned a problem with the carry mechanism and yet this feature was fully tested on all the machines, by their resets, all the time.

    Gottfried Leibniz started to work on his own calculator after Pascal's death. He first tried to build a machine that could multiply automatically while sitting on top of the Pascaline, assuming (wrongly) that all the dials on Pascal's calculator could be operated at the same time. Even though this could not be done, it was the first time that a pinwheel was described and used in the drawing of a calculator.

    He then devised a competing design, the Stepped Reckoner which was meant to perform additions, subtractions and multiplications automatically and division under operator control. Leibniz struggled for forty years to perfect this design and produced two machines, one in 1694 and one in 1706. Only the machine built in 1694 is known to exist; it was rediscovered at the end of the 19th century, having spent 250 years forgotten in an attic at the University of Göttingen.

    The German calculating-machine inventor Arthur Burkhardt was asked to attempt to put Leibniz' machine in operating condition. His report was favorable except for the sequence in the carry. and "therefore, especially in the case of multiple carry transfers, the operator had to check the result and manually correct the possible errors". Leibniz had not succeeded in creating a calculator that worked properly, but he had invented the Leibniz wheel, the principle of a two-motion mechanical calculator. He was also the first to have cursors to inscribe the first operand and a movable carriage for results.

    There were five additional attempts at designing "direct entry" calculating machines in the 17th century (including the designs of Tito Burattini, Samuel Morland and René Grillet)).

    Around 1660 Claude Perrault designed an abaque rhabdologique that is often mistaken for a mechanical calculator because it has a carry mechanism in between the numbers. But it is actually an abacus, since it requires the operator to handle the machine differently when a carry transfer takes place.

    Pascal's calculator was the most successful mechanical calculator developed in the 17th century for the addition and subtraction of large numbers. The 1694 The stepped reckoner had a problem in the carry mechanism after more than two consecutive carries, and the other devices had carry mechanisms (one tooth wheel) that were limited in their capacity to carry across multiple digits or had no carry mechanism in between the digits of the accumulator.

    Calculating machines did not become commercially viable until 1851, when Thomas de Colmar released, after thirty years of development, his simplified arithmometer, the first machine strong enough to be used daily in an office environment. The Arithmometer was designed around Leibniz wheels and initially used Pascal's 9's complement method for subtractions.

    References

    Pascal's calculator Wikipedia