← Table of contents
Sketch of the Analytical Engine invented by Charles Babbage, Esq

NOTE B.—Page 11.

Ada King Lovelace translation

NOTE B.—Page 11.

That portion of the Analytical Engine here alluded to is called the storehouse. It contains an indefinite number of the columns of discs described by M. Menabrea. The reader may picture to himself a pile of rather large draughtsmen heaped perpendicularly one above another to a considerable height, each counter having the digits from 0 to 9 inscribed on its edge at equal intervals; and if he then conceives that the counters do not actually lie one upon another so as to be in contact, which passes perpendicularly through their centres, and around which each disc can revolve horizontally so that any required digit amongst those inscribed on its margin can be brought into view, he will have a good idea of one of these columns. The lowest of the discs on any column belongs to the units, the next above to the tens, the next above this to the hundreds, and so on. Thus, if we wished to inscribe 1345 n a column of the engine, it would stand thus;—

In the Difference Engine there are seven of these columns placed side by side in a row, and the working mechanism extends behind them; the general form of the whole mass of machinery is that of a quadrangular prism (more or less approaching to the cube); the results always appearing on that perpendicular face of the engine which contains the columns of discs, opposite to which face a spectator may place himself. In the Analytical Engine there would be many more of these columns, probably at least two hundred. The precise form and arrangement which the whole mass of its mechanism will assume is not yet finally determined.

We may conveniently represent the columns of discs on paper in a diagram like the following:—

0 0 0 0

0 0 0 0

0 0 0 0

The ’s are for the purpose of convenient reference to any column, either in writing or speaking, and are consequently numbered. The reason why the letter is chosen for this purpose in preference to any other letter, is because these columns are designated (as the reader will find in proceeding with the Memoir) the Variables, and sometimes the Variable columns, or the columns of Variables. The origin of this appellation is, that the values on the columns are destined to change, that is to vary, in every conceivable manner. But it is necessary to guard against the natural misapprehension that the columns are only intended to receive the values of the variables in an analytical formula, and not of the constants. The columns are called Variables on a ground wholly unconnected with the analytical distinction between constants and variables. In order to prevent the possibility of confusion, we have, both in the translation and in the notes, written Variable with a capital letter when we use the word to signify a column of the engine, and variable with a small letter when we mean the variable of a formula. Similarly, Variable-cards signify any cards that belong to a column of the engine.

To return to the explanation of the diagram: each circle at the top is intended to contain the algebraic sign + or -, either of which can be substituted[20] for the other, according as the number represented on the column below is positive or negative. In a similar manner any other purely symbolical results of algebraical processes might be made to appear in these circles. In Note A the practicability of developing symbolical with no less ease than numerical results has been touched on.

The zeros beneath the symbolic circles represent each of them a disc, supposed to have the digit 0 presented in front. Only four tiers of zeros have been figured in the diagram, but these may be considered as representing thirty or forty, or any number of tiers of discs that may be required. Since each disc can present any digit, and each circle any sign, the discs of every column may be so adjusted[21] as to express any positive or negative number whatever within the limits of the machine; which limits depend on the perpendicular extent of the mechanism, that is, on the number of discs to a column.

Each of the squares below the zeros is intended for the inscription of any general symbol or combination of symbols we please; it being understood that the number represented on the column immediately above, is the numerical value of that symbol, or combination of symbols. Let us, for instance, represent the three quantities , , , and let us further suppose that , , . We should have—

+[22] + + +

0 0 0 0

0 0 9 0

5 7 8 0

We may now combine these symbols in a variety of ways, so as to form any required function or functions of them, and we may then inscribe each such function below brackets, every bracket uniting together those quantities (and those only) which enter into the function inscribed below it. We must also, when we have decided on the particular function whose numerical value we desire to calculate, assign another column to the right-hand for receiving the results, and must inscribe the function in the square below this column. In the above instance we might have any one of the following functions:— Let us select the first. It would stand as follows, previous to calculation;—

+ + + +

0 0 0 0

0 0 0 0

0 0 9 0

5 7 8 0

The data being given, we must now put into the engine the cards proper for directing the operations in the case of the particular function chosen. These operations would in this instance be,—

Firstly, six multiplications in order to get ) for the above particular data).

Secondly, one multiplication in order then to get ).

In all, seven multiplications to complete the whole process. We may thus represent them:—

The multiplications would, however, at successive stages in the solution of the problem, operate on pairs of numbers, derived from different columns. In other words, the same operation would be performed on different subjects of operation. And here again is an illustration of the remarks made in the preceding Note on the independent manner in which the engine directs its operations. In determining the value of , the operations are homogeneous, but are distributed amongst different subjects of operation, at successive stages of the computation. It is by means of certain punched cards, belonging to the Variables themselves, that the action of the operations is so distributed as to suit each particular function. The Operation-cards merely determine the succession of operations in a general manner. They in fact throw all that portion of the mechanism included in the mill, into a series of different states, which we may call the adding state, or the multiplying state, &c. respectively. In each of these states the mechanism is ready to act in the way peculiar to that state, on any pair of numbers which may be permitted to come within its sphere of action. Only one of these operating states of the mill can exist at a time; and the nature of the mechanism is also such that only one pair of numbers can be received and acted on at a time. Now, in order to secure that the mill shall receive a constant supply of the proper pairs of numbers in succession, and that it shall also rightly locate the result of an operation performed upon any pair, each Variable has cards of its own belonging to it. It has, first, a class of cards whose business it is to allow the number on the Variable to pass into the mill, there to be operated upon. These cards may be called the Supplying-cards. They furnish the mill with its proper food. Each Variable has, secondly, another class of cards, whose office it is to allow the Variable to receive a number from the mill. These cards may be called the Receiving-cards. They regulate the location of results, whether temporary or ultimate results. The Variable-cards in general (including both the preceding classes) might, it appears to us, be even more appropriately designated the Distributive-cards, since it is through their means that the action of the operations, and the results of this action, are rightly distributed.

There are two varieties of the Supplying Variable-cards, respectively adapted for fulfilling two distinct subsidiary purposes: but as these modifications do not bear upon the present subject, we shall notice them in another place.

In the above case of , the Operation-cards merely order seven multiplications, that is, they order the mill to be in the multiplying state seven successive times (without any reference to the particular columns whose numbers are to be acted upon). The proper Distributive Variable-cards step in at each successive multiplication, and cause the distributions requisite for the particular case. The engine might be made to calculate all these in succession. Having completed , the function might be written under the brackets instead of , and a new calculation commenced (the appropriate Operation and Variable-cards for the new function of course coming into play). The results would then appear on . So on for any number of different functions of the quantities , , . Each result might either permanently remain on its column during the succeeding calculations, so that when all the functions had been computed, their values would simultaneously exist on , , , &c.; or each result, might (after being jointed off, or used in any specified manner) be effaced to make way for its successor. The square under ought, for the latter arrangement, to have the functions , , , &c. successively inscribed in it.

Let us now suppose that we have two expressions whose values have been computed by the engine independently of each other (each having its own group of columns for data and results). Let them be , . They would then stand as follows on the columns:—

+ + + + + + + + +

0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0

We may now desire to combine together these two results, in any manner we please; in which case it would only be necessary to have an additional card or cards, which should order the requisite operations to be performed with the numbers on the two result-columns, and , and the result of these further operations to appear on a new column, . Say that we wish to divide by . The numerical value of this division would then appear on the column , beneath which we have inscribed . The whole series of operations from the beginning would be as follow ( being = 7):—

This example is introduced merely to show that we may, if we please, retain separately and permanently any intermediate results (like ), which occur in the course of processes having an ulterior and more complicated result as their chief and final object .

Any group of columns may be considered as representing a general function, until a special one has been implicitly impressed upon them through the introduction into the engine of the Operation and Variable-cards made out for a particular function. Thus, in the preceding example, , , , , , represent the general function until the function has been determined on, and implicitly expressed by the placing of the right cards in the engine. The actual working of the mechanism, as regulated by these cards, then explicitly developes the value of the function. The inscription of a function under the brackets, and in the square under the result-column, in no way influences the processes or the results, and is merely a memorandum for the observer, to remind him of what is going on. It is the Operation and the Variable-cards only, which in reality determine the function. Indeed it should be distinctly kept in mind that the inscriptions within any of the squares, are quite independent of the mechanism or workings of the engine, and are nothing but arbitrary memorandums placed there at pleasure to assist the spectator.

The further we analyse the manner in which such an engine performs its processes and attains its results, the more we perceive how distinctly it places in a true and just light the mutual relations and connexion of the various steps of mathematical analysis, how clearly it separates those things which are in reality distinct and independent, and unites those which are mutually dependent.

A. A. L.

Notes in this chapter

Explore with AITake your curiosity a little further.

Reading settings