T D^1 D^2 D^3 D^4 16 65 110 84 24
And, in the same manner, the third and succeeding terms as follows:--
No. T D^1 D^2 D^3 D^4 1 1 15 50 60 24 2 16 65 110 84 24 3 81 175 194 108 24 4 256 369 302 132 24 5 625 671 434 156 24 6 1296 1105 590 180 24 7 2401 1695 770 204 24 8 4096 2465 974 228 24 9 6561 3439 1202 252 24 10 10000 4641 1454 276 11 14641 6095 1730 12 20736 7825 13 28561
There are numerous tables in which, as already stated, to whatever order of differences we may proceed, we should not obtain a series of rigorously constant differences; but we should always obtain a certain number of differences which to a given number of decimal places would remain constant for a long succession of terms. It is plain that such a table might be calculated by addition in the same manner as those which have a difference rigorously and continuously constant; and if at every point where the last difference requires an increase, that increase be given to it, the same principle of addition may again be applied for a like succession of terms, and so on.
By this principle it appears, that all tables in which each series of differences continually increases, may be produced by the operation of addition alone; provided the first terms of the table, and of each series of differences, be given in the first instance. But it sometimes happens, that while the table continually increases, one or more serieses of differences may continually diminish. In this case, the series of differences are found by subtracting each term of the series, not from that which follows, but from that which precedes it; and consequently, in the re-production of the several serieses, when their first terms are given, it will be necessary in some cases to obtain them by addition, and in others by subtraction. It is possible, however, still to perform all the operations by addition alone: this is effected in performing the operation of subtraction, by substituting for the subtrahend its arithmetical complement, and adding that, omitting the unit of the highest order in the result. This process, and its principle, will be readily comprehended by an example. Let it be required to subtract 357 from 768.
The common process would be as follows:--
From 768 Subtract 357 ---- Remainder 411
The arithmetical complement of 357, or the number by which it falls short of 1000, is 643. Now, if this number be added to 768, and the first figure on the left be struck out of the sum, the process will be as follows:--
To 768 Add 643 ---- Sum 1411 ---- Remainder sought 411
The principle on which this process is founded is easily explained. In the latter process we have first added 643, and then subtracted 1000. On the whole, therefore, we have subtracted 357, since the number actually subtracted exceeds the number previously added by that amount.
Since, therefore, subtraction may be effected in this manner by addition, it follows that the calculation of all serieses, so far as an order of differences can be found in them which continues constant, may be conducted by the process of addition alone.
It also appears from what has been stated, that each addition consists only of two operations. However numerous the figures may be of which the several pairs of numbers to be thus added may consist, it is obvious that the operation of adding them can only consist of repetitions of the process of adding one digit to another; and of carrying one from the column of inferior units to the column of units next superior when necessary. If we would therefore reduce such a process to machinery, it would only be necessary to discover such a combination of moving parts as are capable of performing these two processes of adding and carrying on two single figures; for, this being once accomplished, the process of adding two numbers, consisting of any number of digits, will be effected by repeating the same mechanism as often as there are pairs of digits to be added. Such was the simple form to which Mr Babbage reduced the problem of discovering the calculating machinery; and we shall now proceed to convey some notion of the manner in which he solved it.
For the sake of illustration, we shall suppose that the table to be calculated shall consist of numbers not exceeding six places of figures; and we shall also suppose that the difference of the fifth order is the constant difference. Imagine, then, six rows of wheels, each wheel carrying upon it a dial-plate like that of a common clock, but consisting of ten instead of twelve divisions; the several divisions being marked 1, 2, 3, 4, 5, 6, 7, 8, 9, 0. Let these dials be supposed to revolve whenever the wheels to which they are attached are put in motion, and to turn in such a direction that the series of increasing numbers shall pass under the index which appears over each dial:--thus, after 0 passes the index, 1 follows, then 2, 3, and so on, as the dial revolves. In Fig. 1 are represented six horizontal rows of such dials.
Fig. 1.
The method of differences, as already explained, requires, that in proceeding with the calculation, this apparatus should perform continually the addition of the number expressed upon each row of dials, to the number expressed upon the row immediately above it. Now, we shall first explain how this process of addition may be conceived to be performed by the motion of the dials; and in doing so, we shall consider separately the processes of addition and carriage, considering the addition first, and then the carriage.
Let us first suppose the line D^1 to be added to the line T. To accomplish this, let us imagine that while the dials on the line D^1 are quiescent, the dials on the line T are put in motion, in such a manner, that as many divisions on each dial shall pass under its index, as there are units in the number at the index immediately below it. It is evident that this condition supposes, that if 0 be at any index on the line D^1, the dial immediately above it in the line T shall not move. Now the motion here supposed, would bring under the indices on the line T such a number as would be produced by adding the number D^1 to T, neglecting all the carriages; for a carriage should have taken place in every case in which the figure 9 of any dial in the line T had passed under the index during the adding motion. To accomplish this carriage, it would be necessary that the dial immediately on the left of any dial in which 9 passes under the index, should be advanced one division, independently of those divisions which it may have been advanced by the addition of the number immediately below it. This effect may be conceived to take place in either of two ways. It may be either produced at the moment when the division between 9 and 0 of any dial passes under the index; in which case the process of carrying would go on simultaneously with the process of adding; or the process of carrying may be postponed in every instance until the process of addition, without carrying, has been completed; and then by another distinct and independent motion of the machinery, a carriage may be made by advancing one division all those dials on the right of which a dial had, during the previous addition, passed from 9 to 0 under the index. The latter is the method adopted in the calculating machinery, in order to enable its inventor to construct the carrying machinery independent of the adding mechanism.
Having explained the motion of the dials by which the addition, excluding the carriages of the number on the row D^1, may be made to the number on the row T, the same explanation may be applied to the number on the row D^2 to the number on the row D^1; also, of the number D^3 to the number on the row D^2, and so on. Now it is possible to suppose the additions of all the rows, except the first, to be made to all the rows except the last, simultaneously; and after these additions have been made, to conceive all the requisite carriages to be also made by advancing the proper dials one division forward. This would suppose all the dials in the scheme to receive their adding motion together; and, this being accomplished, the requisite dials to receive their carrying motions together. The production of so great a number of simultaneous motions throughout any machinery, would be attended with great mechanical difficulties, if indeed it be practicable. In the calculating machinery it is not attempted. The additions are performed in two successive periods of time, and the carriages in two other periods of time, in the following manner. We shall suppose one complete revolution of the axis which moves the machinery, to make one complete set of additions and carriages; it will then make them in the following order:--
The first quarter of a turn of the axis will add the second, fourth, and sixth rows to the first, third, and fifth, omitting the carriages; this it will do by causing the dials on the first, third, and fifth rows, to turn through as many divisions as are expressed by the numbers at the indices below them, as already explained.
The second quarter of a turn will cause the carriages consequent on the previous addition, to be made by moving forward the proper dials one division.
(During these two quarters of a turn, the dials of the first, third, and fifth row alone have been moved; those of the second, fourth, and sixth, have been quiescent.)
The third quarter of a turn will produce the addition of the third and fifth rows to the second and fourth, omitting the carriages; which it will do by causing the dials of the second and fourth rows to turn through as many divisions as are expressed by the numbers at the indices immediately below them.
The fourth and last quarter of a turn will cause the carriages consequent on the previous addition, to be made by moving the proper dials forward one division.
This evidently completes one calculation, since all the rows except the first have been respectively added to all the rows except the last.
To illustrate this: let us suppose the table to be computed to be that of the fifth powers of the natural numbers, and the computation to have already proceeded so far as the fifth power of 6, which is 7776. This number appears, accordingly, in the highest row, being the place appropriated to the number of the table to be calculated. The several differences as far as the fifth, which is in this case constant, are exhibited on the successive rows of dials in such a manner, as to be adapted to the process of addition by alternate rows, in the manner already explained. The process of addition will commence by the motion of the dials in the first, third, and fifth rows, in the following manner: The dial A, fig. 1, must turn through one division, which will bring the number 7 to the index; the dial B must turn through three divisions, which will 0 bring to the index; this will render a carriage necessary, but that carriage will not take place during the present motion of the dial. The dial C will remain unmoved, since 0 is at the index below it; the dial D must turn through nine divisions; and as, in doing so, the division between 9 and 0 must pass under the index, a carriage must subsequently take place upon the dial to the left; the remaining dials of the row T, fig. 1, will remain unmoved. In the row D^2 the dial A^2 will remain unmoved, since 0 is at the index below it; the dial B^2 will be moved through five divisions, and will render a subsequent carriage on the dial to the left necessary; the dial C^2 will be moved through five divisions; the dial D^2 will be moved through three divisions, and the remaining dials of this row will remain unmoved. The dials of the row D^4 will be moved according to the same rules; and the whole scheme will undergo a change exhibited in fig. 2; a mark (*) being introduced on those dials to which a carriage is rendered necessary by the addition which has just taken place.
Fig. 2.
The second quarter of a turn of the moving axis, will move forward through one division all the dials which in fig. 2 are marked (*), and the scheme will be converted into the scheme expressed in fig. 3.
Fig. 3.
In the third quarter of a turn, the dial A^1, fig. 3, will remain unmoved, since 0 is at the index below it; the dial B^1 will be moved forward through three divisions; C^1 through nine divisions, and so on; and in like manner the dials of the row D^3 will be moved forward through the number of divisions expressed at the indices in the row D^4. This change will convert the arrangement into that expressed in fig. 4, the dials to which a carriage is due, being distinguished as before by (*).
The Calculating Engine · The Wunder Library — complete classics, free to read, with narration.