Chapter 14 of 19 · 3526 words · ~18 min read

CHAPTER XIII.

CALCULATING ENGINES.

It is not a bad definition of _man_ to describe him as a _tool-making animal_. His earliest contrivances to support uncivilized life, were tools of the simplest and rudest construction. His latest achievements in the substitution of machinery, not merely for the skill of the human hand, but for the relief of the human intellect, are founded on the use of tools of a still higher order.

The successful construction of all machinery depends on the perfection of the tools employed, and whoever is a master in the art of tool-making possesses the key to the construction of all machines.

The Crystal Palace, and all its splendid contents, owe their existence to _tools_ as the physical means:—to intellect as the guiding power, developed equally on works of industry or on objects of taste.

The contrivance and the construction of tools, must therefore ever stand at the head of the industrial arts.

The next stage in the advancement of those arts is equally necessary to the progress of each. It is the art of drawing. Here, however, a divergence commences: the drawings of the artist are entirely different from those of the mechanician. The drawings of the latter are Geometrical projections, and are of vast importance in all mechanism. The resources of mechanical drawing have not yet been sufficiently explored: with the great advance now making in machinery, it will become necessary to assist its powers by practical yet philosophical rules for expressing still more clearly by signs and by the letters themselves the mutual relations of the parts of a machine.

As we advance towards machinery for more complicated objects, other demands arise, without satisfying which our further course is absolutely stopped. It becomes necessary to see at a glance, not only every _successive_ movement of each amongst thousands of different parts, but also to scrutinize all contemporaneous actions. This gave rise to the Mechanical Notation, a language of signs, which, although invented for one subject, is of so comprehensive a nature as to be applicable to many. If the whole of the facts relating to a naval or military battle were known, the mechanical notation would assist the description of it quite as much as it would that of any complicated engine.

This brief sketch has been given partly with the view of more distinctly directing attention to an important point in which England excels all other countries—the art of _contriving and making tools_; an art which has been continually forced upon my own observation in the contrivance and construction of the Calculating Engines.

When the first idea of inventing mechanical means for the calculation of all classes of astronomical and arithmetical tables, occurred to me, I contented myself with making simple drawings, and with forming a small model of a few parts. But when I understood it to be the wish of the Government that a large engine should be constructed, a very serious question presented itself for consideration:—

Is the present state of the art of making machinery sufficiently advanced to enable me to execute the multiplied and highly complicated movements required for the Difference Engine?

After examining all the resources of existing workshops, I came to the conclusion that, in order to succeed, it would become necessary to advance the art of construction itself. I trusted with some confidence that those studies which had enabled me to contrive mechanism for new wants, would be equally useful for the invention of new tools, or of other methods of employing the old.

During the many years the construction of the Difference Engine was carried on, the following course was adopted. After each drawing had been made, a new inquiry was instituted to determine the mechanical means by which the several parts were to be formed. Frequently sketches, or new drawings, were made, for the purpose of constructing the tools or mechanical arrangements thus contrived. This process often elicited some simpler mode of construction, and thus the original contrivances were improved. In the mean time, many workmen of the highest skill were constantly employed in making the tools, and afterwards in using them for the construction of parts of the engine. The knowledge thus acquired by the workmen, matured in many cases by their own experience, and often perhaps improved by their own sagacity, was thus in time disseminated widely throughout other workshops. Several of the most enlightened employers and constructors of machinery, who have themselves contributed to its advance, have expressed to me their opinion that if the Calculating Engine itself had entirely failed, the money expended by Government in the attempt to make it, would be well repaid by the advancement it had caused in the art of mechanical construction.

It is somewhat singular, that whilst I had anticipated the difficulties of construction, I had not foreseen a far greater difficulty, which, however, was surmounted by the invention of the Mechanical Notation.

The state of the _Difference Engine_ at the time it was abandoned by the Government, was as follows: A considerable portion of it had been made; a part (about sixteen figures) was put together; and the drawings, the whole of which are now in the Museum of King’s College at Somerset House, were far advanced. Upon this engine the Government expended about £17,000.

The drawings of the _Analytical Engine_ have been made entirely at _my own cost_: I instituted a long series of experiments for the purpose of reducing the expense of its construction to limits which might be within the means I could myself afford to supply. I am now resigned to the necessity of abstaining from its construction, and feel indisposed even to finish the drawings of one of its many general plans. As a slight idea of the state of the drawings may be interesting to some of my readers, I shall refer to a few of the great divisions of the subject.

ARITHMETICAL ADDITION.—About a dozen plans of different mechanical movements have been drawn. The last is of the very simplest order.

CARRIAGE OF TENS.—A larger number of drawings have been made of modes of carrying tens. They form two classes, in one of which the carriage takes place successively; in the other it occurs simultaneously, as will be more fully explained at the end of this chapter.

MULTIPLYING BY TENS.—This is a very important process, though not difficult to contrive. Three modes are drawn; the difficulties are chiefly those of construction, and the most recent experiments now enable me to use the simplest form.

DIGIT COUNTING APPARATUS.—It is necessary that the machine should count the digits of the numbers it multiplies and divides, and that it should combine these properly with the number of decimals used. This is by no means so easy as the former operation: two or three systems of contrivances have been drawn.

COUNTING APPARATUS.—This is an apparatus of a much more general order, for treating the indices of functions and for the determination of the repetitions and movements of the Jacquard cards, on which the Algebraic developments of functions depend. Two or three such mechanisms have been drawn.

SELECTORS.—The object of the system of contrivances thus named, is to choose in the operation of Arithmetical division the proper multiple to be subtracted; this is one of the most difficult parts of the engine, and several different plans have been drawn. The one at last adopted is, considering the object, tolerably simple. Although division is an inverse operation, it is possible to perform it entirely by mechanism without any tentative process.

REGISTERING APPARATUS.—This is necessary in division to record the quotient as it arises. It is simple, and different plans have been drawn.

ALGEBRAIC SIGNS.—The means of combining these are very simple, and have been drawn.

PASSAGE THROUGH ZERO AND INFINITY.—This is one of the most important parts of the Engine, since it may lead to a totally different action upon the formulæ employed. The mechanism is much simpler than might have been expected, and is drawn and fully explained by notations.

BARRELS AND DRUMS.—These are contrivances for grouping together certain mechanical actions often required; they are occasionally under the direction of the cards; sometimes they guide themselves, and sometimes their own guidance is interfered with by the Zero Apparatus.

GROUPINGS.—These are drawings of several of the contrivances before described, united together in various forms. Many drawings of them exist.

GENERAL PLANS.—Drawings of all the parts necessary for the Analytical Engine have been made in many forms. No less than thirty different general plans for connecting them together, have been devised and partially drawn; one or two are far advanced. No. 25 was lithographed at Paris in 1840. These have been superseded by simpler or more powerful combinations, and the last and most simple has only been sketched.

A large number of Mechanical Notations exist, showing the movements of these several parts, and also explaining the processes of arithmetic and algebra to which they relate. One amongst them, for the process of division, covers nearly thirty large folio sheets.

About twenty years after I had commenced the first Difference Engine, and after the greater part of these drawings had been completed, I found that almost every contrivance in it had been superseded by new and more simple mechanism, which the construction of the Analytical Engine had rendered necessary. Under these circumstances I made drawings of an entirely new Difference Engine. The drawings, both for the calculating and the printing parts, amounting in number to twenty-four, are completed. They are accompanied by the necessary mechanical notations, and by an index of letters to the drawings; so that although there is as yet no description in words, there is effectively such a description by signs, that this new Difference Engine might be constructed from them.

Amongst the difficulties which surrounded the idea of the construction of an Engine for developing Analytical formulæ, there were some which seemed insuperable if not impossible, not merely to the common understandings of well-informed persons, but even to the more practised intellect of some of the greatest masters of that science which the machine was intended to control. It still seemed, after much discussion, at least highly doubtful whether such formulæ could ever be brought within the grasp of mechanism.

I have met in the course of my inquiries with four cases of obstacles presenting the appearance of impossibilities. As these form a very interesting chapter in the history of the human mind, and are on the one hand connected with some of the simplest elements of mechanism, and on the other with some of the highest principles of philosophy, I shall endeavour to explain them in a short, and, I hope, somewhat popular manner, to those who have a very moderate share of mathematical knowledge. Those of my readers to whom they may not be sufficiently interesting, will, I hope, excuse the interruption, and pass on to the succeeding chapters.

§ The first difficulty arose at an early stage of the Analytical Engine. The mechanism necessary to add one number to another, if the carriage of the tens be neglected, is very simple. Various modes had been devised and drawings of about a dozen contrivances for carrying the tens had been made. The same general principle pervaded all of them. Each figure wheel when receiving addition, in the act of passing from nine to ten caused a lever to be put aside. An axis with arms arranged spirally upon it then revolved, and commencing with the lowest figure replaced successively those levers which might have been put aside during the addition. This replacing action upon the levers caused unity to be added to the figure wheel next above. The numerical example below will illustrate the process.

597,999 Numbers to be added. 201,001 ------- 798,990 Sum without any carriage. 1 Puts aside lever acting on tens. ------- 798,900 First spiral arm adds tens and 1 puts aside the next lever. ------- 798,000 Second spiral arm adds hundreds, and 1 puts aside the next lever. ------- 799,000 Third spiral arm adds thousands.

Now there is in this mechanism a certain analogy with the act of memory. The lever thrust aside by the passage of the tens, is the equivalent of the note of an event made in the memory, whilst the spiral arm, acting at an after time upon the lever put aside, in some measure resembles the endeavours made to recollect a fact.

It will be observed that in these modes of _carrying_, the action must be _successive_. Supposing a number to consist of thirty places of figures, each of which is a nine, then if any other number of thirty figures be added to it, since the addition of each figure to the corresponding one takes place at the same time, the whole addition will only occupy nine units of time. But since the number added may be unity, the carriages may possibly amount to twenty-nine. Consequently the time of making the carriages may be more than three times as long as that required for addition.

The time thus occupied was, it is true, very considerably shortened in the Difference Engine: but when the Analytical Engine was to be contrived, it became essentially necessary to diminish it still further. After much time fruitlessly expended in many contrivances and drawings, a very different principle, which seemed indeed at first to be impossible, suggested itself.

It is evident that whenever a carriage is conveyed to the figure above, if that figure happen to be a nine, a new carriage must then take place, and so on as far as the nines extend. Now the principle sought to be expressed in mechanism amounted to this.

1st. That a lever should be put aside, as before, on the passage of a figure-wheel from nine to ten.

2d. That the engine should then ascertain the position of all those nines which by carriage would ultimately become zero, and give notice of new carriages; that, foreseeing those events, it should anticipate the result by making all the carriages simultaneously.

This was at last accomplished, and many different mechanical contrivances fulfilling these conditions were drawn. The former part of this mechanism bears an analogy to memory, the latter to foresight. The apparatus remembers as it were, one set of events, the transits from nine to ten: examines what nines are found in certain critical places: then, in consequence of the concurrence of these events, acts at once so as to anticipate other actions that would have happened at a more distant period, had less artificial means been used.

§ The second apparent impossibility seemed to present far greater difficulty. Fortunately it was not one of immediate _practical_ importance, although as a question of philosophical inquiry it possessed the highest interest. I had frequently discussed with Mrs. Somerville and my highly gifted friend the late Professor M‘Cullagh of Dublin, the question whether it was possible that we should be able to treat algebraic formulæ by means of machinery. The result of many inquiries led to the conclusion, that if not really impossible, it was almost hopeless. The first difficulty was that of representing an indefinite number in a machine of finite size. It was readily admitted that if a machine afforded means of operating on _all_ numbers under twenty places of figures, then that any number, or _an indefinite_ number, of less than twenty places or figures might be represented by it. But such number will not be really indefinite. It would be possible to make a machine capable of operating upon numbers of forty, sixty, or one hundred places of figures: still, however, a limit must at last be reached, and the numbers represented would not be really _indefinite_. After lengthened consideration of this subject, the solution of the difficulty was discovered; and it presented the appearance of reasoning in a circle.

Algebraical operations in their most general form cannot be carried on by machinery without the capability of expressing _indefinite_ constants. On the other hand, the only way of arriving at the expression of an indefinite constant, was through the intervention of Algebra itself.

This is not a fit place to enter into the detail of the means employed, further than to observe, that it was found possible to evade the difficulty, by connecting _indefinite_ number with the _infinite in time_ instead of with the _infinite in space_.

The solution of this difficulty being found, and the discovery of another principle having been made, namely—that _the nature of a function might be indicated by its position_—algebra, in all its most abstract forms, was placed completely within the reach of mechanism.

§ The third difficulty that presented itself was one which I had long before anticipated. It was proposed to me nearly at the same time by three of the most eminent cultivators of analysis then existing, M. Jacobi, M. Bessel, and Professor M‘Cullagh, who were examining the drawings of the Analytical Engine. The question they proposed was this:—How would the Analytical Engine be able to treat calculations in which the use of tables of logarithms, sines, &c. or any other tabular numbers should be required?

My reply was, that as at the time logarithms were invented, it became necessary to remodel the whole of the formulæ of Trigonometry, in order to adapt it to the new instrument of calculation: so when the Analytical Engine is made, it will be desirable to transform all formulæ containing tabular numbers into others better adapted to the use of such a machine. This, I replied, is the answer I give to you as mathematicians; but I added, that for others less skilled in our science, I had another answer: namely—

That the engine might be so arranged that wherever tabular numbers of any kind, occurred in a formula given it to compute, it would on arriving at any required tabular number, as for instance, if it required the logarithm of 1207, stop itself, and ring a bell to call the attendant, who would find written at a certain part of the machine “Wanted log. of 1207.” The attendant would then fetch from tables previously computed by the engine, the logarithm it required, and placing it in the proper place, would lift a detent, permitting the engine to continue its work.

The next step of the engine, on receiving the tabular number (in this case the logarithm of 1207) would be to _verify_ the fact of its being really that logarithm. In case no mistake had been made by the attendant, the engine would use the given tabular number, and go on with its work until some other tabular number were required, when the same process would be repeated. If, however, any mistake had been made by the attendant, and a wrong logarithm had been accidentally given to the engine, it would have discovered the mistake, and have rung a louder bell to call the attention of its guide, who on looking at the proper place, would see a plate above the logarithm he had just put in with the word “_wrong_” engraven upon it.

By such means it would be perfectly possible to make all calculations requiring tabular numbers, without the chance of error.

Although such a plan does not seem absolutely impossible, it has always excited, in those informed of it for the first time, the greatest surprise. How, it has been often asked, does it happen if the engine knows when the _wrong_ logarithm is offered to it, that it does not also know the right one; and if so, what is the necessity of having recourse to the attendant to supply it? The solution of this difficulty is accomplished by the very simplest means.

§ The fourth of the apparent impossibilities to which I have referred, involves a condition of so extraordinary a nature that even the most fastidious inquirer into the powers of the Analytical Engine could scarcely require it to fulfil.

Knowing the kind of objections that my countrymen make to this invention, I proposed to myself this inquiry:—

Is it possible so to construct the Analytical Engine, that after the cards representing the formulæ and numbers are put into it, and the handle is turned, the following condition shall be fulfilled?

The attendant shall stop the machine in the middle of its work, whenever he chooses, and as often as he pleases. At each stoppage he shall examine all the figure wheels, and if he can, without breaking the machine, move any of them to other figures, he shall be at liberty to do so. Thus he may from time to time, falsify as many numbers as he pleases. Yet notwithstanding this, the final calculation and all the intermediate steps shall be entirely free from error. I have succeeded in fulfilling this condition by means of a principle in itself very simple. It may add somewhat, though not very much, to the amount of mechanism required; in many parts of the engine the principle has been already carried out. I by no means think such a plan _necessary_, although wherever it can be accomplished without expense it ought to be adopted.