—— —— 6421 8761 D ——
The product counter has the out-code 8761. When the product is desired, it is called for, transferred into counter D, and the multiplication unit is automatically cleared. It takes time, however, for the machine to perform a multiplication. That is the reason for the preceding coding line and the 6421 in the C field. While the multiplication is going on, we can instruct the machine to do other things that we want done. We can insert or interpose coding lines in between the multiplier line and the product line. For example, if we have a multiplier of 10 digits, we can insert 8 coding lines and maybe more. The 6421 code essentially tells the machine to finish both the multiplication and the interposed instructions, and, as soon as the later one of these two tasks is finished, to transfer out the product to counter D.
Up to the middle of 1946, the wiring of the machine was a little different and less convenient. When the product was obtained by the multiplication unit, it had to be accepted and transferred at once into one of the 72 storage registers.
Dividing
Division is called for by first sending the divisor into the divisor counter, and this has a code 76 in the B field. If the divisor is in counter 321, the instruction may be:
Take the number in 321; enter it as divisor; read the next coding line
The coding will then be:
321, 76, 7
Three coding lines later, the dividend is called for, and the coding, if the dividend is in switch 7431, is:
7431, ——, 7
We can send the quotient, when ready, into any desired counter Q by the following two lines of coding:
—— —— 642 876 Q ——
In the same way as with multiplication, we can insert a number of coding lines in between the dividend line and the first quotient line.
Both multiplication and division are carried out in the same unit of the machine, the multiply-divide unit. The machine first constructs a table of the multiples of the multiplicand or divisor: 1 times, 2 times, 3 times, ···, 9 times. In multiplication this table is then used by selecting multiples according to the digits of the multiplier one after another. In division the table is used by comparing multiples of the divisor against the dividend and successive remainders, finding which will go and which will not. Since the numbers in the machine are normally of 15 to 23 digits, any particular multiple will be used, on the average, several times, and so this process is relatively efficient. Actually the multiplicand and the divisor go into the same counter. Division, however, has the code 76 and multiplication the code 761, and so the difference is essentially an operation code not in the third or C field.
Consulting a Table
When we desire the machine to consult a table of values (i.e., a function—see Supplement 2), we punch the table with its arguments and function values on a tape, and we put the tape on a value tape feed mechanism. The instruction to the machine may be:
Take the number in register A; find the value of the function for this number, and enter it in register B.
The coding is:
—— —— 73 _A_ 7654 61 —— —— 762 —— —— 543 —— —— 75431 841 7654 —— _A_ 763 6421 8762 _B_ 73 —— 8763 7
Without explaining this coding line by line, we can say that this is what happens:
The machine reads the argument in register _A_. The machine reads the argument in the table at which the value tape feed is resting.
It subtracts them, and thereby determines how far away the desired argument is.
The machine then turns the tape that required distance.
It checks that the new argument is the wanted argument.
It reads the value of the function entered at that point on the function tape.
Selecting
There is a storage counter in the machine that is called the selection counter. The selection counter is counter 70 and has the code 732. It has all the properties of an ordinary storage counter and, in addition, one extra property: depending on the sign of the number stored in the selection counter, it is possible to select whether some other number shall be treated positively or negatively. In other words, addition of a number anywhere in the machine may take place either positively or negatively, if the number stored in the selection counter is positive or negative, respectively.
For example, suppose that x is the number in the selection counter. Suppose that y is the number in some other counter A. Suppose that z is the number in counter B. Suppose that we use the coding:
A, B, 7432
What we get in B, because of the 7432 in the third or C field, is z plus y if x is positive or zero, and z minus y if x is negative. In the language of the algebra of logic (see Chapter 9 and Supplement 2), where T( ...) is “the truth value of ...,” the number in b equals:
z + y·T(x ≥ 0) - y·T(x < 0)
(The nines complement of 0, namely 999···9 to 24 digits, is treated by the machine as negative.)
Why do we need an operation like this in a mechanical brain? Among other reasons, what we want to do with a number, in mathematics, often depends on its sign. It may happen that a table is, for negative arguments, the negative of what it is for positive arguments; in other words, F(-x) =-F(x). This is true, for instance, for a table of cubes {F(x) = x³} or for a table of trigonometric tangents (see Supplement 2). If so, we certainly do not want to take the time and trouble to list the whole table. We put down only half the table and then, if x is negative, use the negative of the value in the table. In order to apply such a time-saving rule when using the machine, we need the selection counter or its equivalent.
Checking
There is another special counter in the machine that is called the check counter. It also has all the properties of an ordinary storage counter and, in addition, one extra property: If the sign of the number stored in the check counter on a certain coding line is negative, then on the next coding line the machine may be stopped. In other words, suppose that the check counter stores a certain tolerance t. Suppose, under the instructions we give the machine, that it calculates a positive number x that ought to be less than this tolerance. Suppose that something may go wrong and that x actually may be greater than t. Then we put a check into our instructions. We tell the machine:
When you have found x, subtract it from t.
If the result is positive, go ahead.
If the result is negative or zero, stop!
Here is the coding. Suppose that the tolerance t is in switch 751. Suppose that the number x to be checked is in counter 4321. Then the instructions and coding are:
Clear the check counter — — 7 Put in the tolerance, from switch 751 751 74 7 Subtract the absolute value of the number to be checked 4321 74 71 Stop, O Mechanical Brain, if your result be negative! — — 64
An operation like this is very useful in a mechanical brain. It enables the calculation to be interrupted if something has gone wrong. Of course, other operations of checking besides this one are used—for example, inspecting for reasonableness the results printed on typewriter 1.
Other Operations
There are other operations in the machine. There are two pairs of storage registers that can be coupled together so that we can handle problems requiring numbers of 46 digits instead of 23. Registers 64 and 65 can be coupled, and registers 68 and 69 can be coupled. There is another storage counter, No. 71, that has an extra property. We can read out the number it holds times 1, or times 10¹², or times 10⁻¹², as may be called for. As a result of this counter, we can do problems requiring 144 registers storing numbers of 11 digits each, instead of 72 registers storing 23 digits each. Bigger statistical problems can be handled, for example.
There are some minor sequences of operations, or subroutines, that can be called for by a single code. The subroutine may be a whole set of additions, subtractions, multiplications, divisions, and choices, having a single purpose: to compute some number by a process of rapid approximation (see Supplement 2). There are built-in subroutines for some special mathematical functions: the logarithm of a number to the base 10, the exponential of a number to the base 10, and the sine of a number. (See Supplement 2.)
There are also 10 changeable subroutines, each of 22 coding lines, which can be called in, when wanted, by the main sequence-control tape or by each other. These subroutines constitute the Subsidiary Sequence Mechanism, and are extremely useful. They have A, B, and C fields just like the main sequence-control, but they are given information by plugging with short lengths of wire instead of by feeding punched paper tape.
Rapid Approximation for a Logarithm
Up to this point in this chapter the author has tried to tell the facts about the Harvard machine in plain words. But for reading this section, a little knowledge of calculus is necessary. (See also Supplement 2.) If you wish, skip this section and go on to the next one.
What is the process that the machine uses to compute any desired logarithm to 23 digits? Suppose that we take for an example the process by which the machine computes log_{10} 49.3724. We choose a 6-digit number for simplicity; the machine would handle a 23-digit number in the same way. The process uses 2 fundamental equations involving the logarithm: the sum relation
log (a·b·c···) = log a + log b + log c···
and the series relation
_h_² _h_³ _h_⁴ logₑ(1 + _h_) = _h_ - ———— + ———— - ———— + ···, │_h_│ < 1 2 3 4
The error in this series is less than the first neglected term. Now, the machine stores the base 10 logarithms (to 23 decimal places) of the following 36 numbers:
1 1.1 1.01 1.001 2 1.2 1.02 1.002 ... ... ... ... 9 1.9 1.09 1.009
First, the number 49.3724 is examined in a counter called the Logarithm-In-Out counter, and the position of the decimal point is determined, giving the characteristic of the logarithm. The number 49.3724 has the characteristic 1. Next, 4 successive divisions are performed, in which the 4 divisors are (1) the first digit of the number, (2) the first 2 digits of the quotient, (3) the first 3 digits of the next quotient, and (4) the first 4 digits of the subsequent quotient; thus,
4.93724/4 = 1.23431
1.23431/1.2 = 1.02860
1.02860/1.02 = 1.00843
1.00843/1.008 = 1.00043
For simplicity we have kept only 6 digits, although the machine, of course, would keep 23. It is interesting to note that the machine is able to sense digits and thus determine the 4 divisors; this is an arithmetical and numerical process and one that cannot be done in ordinary algebra. We now have:
log₁₀ 49.3724 = 1 + log₁₀ 4 + log₁₀ 1.2 + log₁₀ 1.02 + log₁₀ 1.008 + log₁₀ 1.00043
To compute log₁₀ 1.00043 to 21 decimals we use
( h² h³ h⁴ h⁵ h⁶ ) log₁₀e · (h - ————— + ————— - ———— + ————— - —————) ( 2 3 4 5 6 )
with h = 0.00043. Only 6 terms of the series relation are needed. For, the error is less than h⁷/7, which is less than 10⁻²¹/7, since h < ¹/₁₀₀₀. The machine uses the series relation in the form
log₁₀ (1 + h) = {([{(c₆h + c₅)h + c₄}h
+ _c_₃]_h_ + _c_₂)_h_ + _c_₁}_h_ where
c₁ = M, c₂ = -M/2, c₃ = M/3, ···,
and M = log₁₀_e= 0.434294···.
The 6 values of the c’s are also stored in the machine. When any logarithm is to be computed, the sum of the characteristic, of the 4 logarithms of the successive divisors, and of the first 6 terms of the series relation gives the logarithm. The maximum time required is 90 seconds.
An Appraisal of the Calculator
The IBM Automatic Sequence-Controlled Calculator at Harvard is a landmark in the development of machines that think. Its capacity for many problems for which it is suited is far beyond the capacity of a hundred human computers.
Speed
The time required in the machine for adding, subtracting, transferring, or clearing numbers is ³/₁₀ of a second. This is the time of one machine cycle or of reading one coding line. Multiplication takes at the most 6 seconds, and an average of 4 seconds. Division takes at the most 16 seconds, and an average of 11 seconds. Each, however, requires only 3 lines of coding, or ⁹/₁₀ of a second’s attention from the sequence mechanism; interposed operations fill the rest of the time. To calculate a logarithm, an exponential, or a sine to the full number of digits obtainable by means of the automatic subroutine takes at the most 90, 66, and 60 seconds, respectively. To get three 24-digit numbers from feeding a punch card takes ⅓ second. To punch a number takes from ½ second up to 3 seconds. To print a number takes from 1½ seconds up to 7 seconds.
Cost and Value
The cost of the machine was somewhere near 3 or 4 hundred thousand dollars, if we leave out some of the cost of research and development, which would have been done whether or not this particular machine had ever been built. A staff of 10 men, consisting of 4 mathematicians, 4 operators, and 2 maintenance men, are needed to keep the machine running 24 hours a day. This might represent, if capitalized, another 1 or 2 hundred thousand dollars. If a capital value of $500,000 is taken as equivalent to $50,000 a year, then the cost of the machine in operation 24 hours a day is in the neighborhood of $150 a day or $6 an hour.
The value of the machine, however, is very much greater. If 100 human beings with desk calculators were set to work 8 hours a day at $1.50 an hour, the cost would be $1200 a day, or 8 times as much. Yet it is very doubtful that the work they could produce would equal that turned out by the machine, either in quality or quantity, when the machine is well suited to the problem.
Reliability
By reliability we mean the extent to which the results produced by the machine can be relied on to be right. The machine contains no built-in device for making its operations reliable. So, if we wish to check a multiplication, for example, we can do the multiplication a second time, interchanging the multiplier and the multiplicand. But if, say, digit 16 of the product were not transferring correctly, we would get the same wrong result both ways and we would not have a sufficient check. Thus, when we set up a problem for the machine to do, one of the big tasks we have is checking. We have to work out ways of making sure that the result, when we get it, is right and ways of instructing the machine to make the tests we want. This is not a new task. Whenever you or I set out to solve a problem, we have to make sure—usually by doing the problem twice, and preferably by doing it a different way the second time—that our answer, when we get it, is correct. One of the chief tasks for the mathematician, in making a sequence-control tape for the machine, is to put into it sufficient checks to make sure that the results are correct.
We can use a number of different kinds of partial checks: the check counter; differences, and smoothness (see Supplement 2); watching the results printed on typewriter 1; mathematical checks; comparison with known specific values; etc.
In actual experience on the machine, human failures, such as failure to state the problem exactly or failure to put it on the machine correctly, have given about as much trouble as mechanical failures. The machine operates without mechanical failure about 90 to 95 per cent of the time. The balance of the time the machine is idle while being serviced or repaired. The machine is serviced by mechanics trained and supervised at Harvard.
Often when we change the machine from one problem to another problem, we find some kind of trouble. Consequently, we need to work out in detail the first part of any calculation placed on the machine. We then compare the results step by step with the results produced by the machine. Any mathematician working with the machine needs considerable training in order to diagnose trouble quickly and guide the maintenance men to the place where repair or replacement is needed. Once you find the trouble, you can fix it easily. Without disturbing the soldered connections, you can easily pull out from its socket a relay that is misbehaving and plug in a new relay. With a screwdriver you can change a counter position—detach it from its socket and replace it by another one that is working correctly.
One “bug” that will long be remembered around the Laboratory was a case involving a 5 that would incorrectly come in to a number every now and then. It did not happen often—only once in a while. After a week of search the bug was finally located: the insulation on a wire that carried a 5 had worn through in one spot, and once in a while this wire would shake against a post that could carry current and took in the 5!
Efficiency
In many respects, this machine is efficient and well-balanced. Its reading and writing speed is close to its calculating speed. We can punch or print a result on the average for every 10 additions or 1½ multiplications. The memory of 72 numbers in the machine is extremely useful; a smaller memory is a serious limitation on the achievements of a computing machine. The machine can do many kinds of arithmetic and logic. It is well educated and can compute automatically some rather complicated mathematical functions, like logarithm or sine. It has done difficult and important problems. It has computed and tabulated (see Supplement 2) Bessel functions, definite integrals, etc. It can solve differential equations (see Chapter 5) and many other problems in mathematics, physics, and engineering.
On the other hand, no calculator will ever again be built just like this one, useful though it is. Electronic computing is easily 100 times as fast as relay computing; nearly every future calculator will do its computing electronically. Many other improvements will be made. For example, in this calculator, there are 72 addition-subtraction mechanisms, yet only one of these can be used at a time. Also, the machine has only one combined multiply-divide unit. So we have to organize any computation with few multiplications, and with still fewer divisions, for they take longer still.
Until 1947, we had to organize any computation in this calculator into one single fixed sequence of operations. In other words, there was no way to move from one subroutine to another subroutine depending on some indication that turned up in our computation. Recently, the Harvard Computation Laboratory decided to remedy this condition and provided the Subsidiary Sequence Mechanism equivalent to 10 subroutines of 22 lines of coding each. These are on relays and plug wires and may be called for by the sequence-control tape or by each other. This provision has added greatly to the efficiency of the calculator.
Whatever else can be said about the Harvard IBM Automatic Sequence-Controlled Calculator, it must be said that this was the first general-purpose mechanical brain using numbers in digit form and able to do arithmetic and logic in hundreds of thousands of steps one after another. And great credit must go to Professor Howard H. Aiken of Harvard and the men of International Business Machines Corporation who made this great mechanical brain come into existence.
Chapter 7
Speed—5000 Additions a Second:
Moore School’s Eniac
(electronic Numerical Integrator and Calculator)
Another of the giant brains that has begun to work is named ENIAC. This name comes from the initial letters of the full name, Electronic Numerical Integrator and Calculator. Eniac was born in 1942 at the Moore School of Electrical Engineering, of the University of Pennsylvania, in Philadelphia. Eniac’s father was the Ordnance Department of the U. S. Army, which provided the funds to feed and rear the prodigy.
In the short space of four years, Eniac grew to maturity, and in February 1946 he began to earn his own living by electronic thinking. Eniac promptly set several world’s records. He was the first giant brain to use electronic tubes for calculating. He was the first one to reach the speed of 5000 additions a second. He was the first piece of electronic apparatus containing as many as 18,000 electronic tubes all functioning together successfully. As soon as Eniac started thinking, he promptly made relay calculators obsolete from the scientific point of view, for they have a top speed of perhaps 10 additions a second.
At the age of 5, he moved to Maryland at a cost of about $90,000, and his permanent home is now the Ballistic Research Laboratories at the U. S. Army’s Proving Ground at Aberdeen, Md.
Origin and Development
In the Department of Terrestrial Magnetism in the Carnegie Institution of Washington, a great deal of information about the earth is studied. Many kinds of physical observations are there gathered and analyzed: electricity in the atmosphere, magnetism in the earth, and the weather, for example. In 1941, a physicist, Dr. John W. Mauchly, was thinking about the great mass of numerical information they had to handle. He became convinced that much swifter ways of handling these numbers were needed. He was certain electronic devices could be used for computing at very high speeds, yet he found no one busy applying electronics in this field. With hopes of finding some way of developing electronic computing, he joined the staff of the Moore School of Electrical Engineering in the autumn of 1941.
The Moore School in 1934 and 1935 had built a differential analyzer; and, from that time on, the school had made a number of improvements in it. In 1941, with war imminent, the differential analyzer was put hard at work calculating tables for the Army’s Ballistic Research Laboratories. These tables were mostly firing tables, tables of the paths along which projectiles travel when fired—trajectories; obviously, you cannot fire a gun usefully, unless you know how to aim it. The amount of calculation of trajectories was so huge that Dr. Mauchly suggested that a machine using electronic tubes be constructed to calculate them. A good deal of discussion took place between men at the Moore School, men at the Ballistic Research Laboratories, and men from the Ordnance Department in Washington. A contract for research into an electronic trajectory computer was concluded with the Ordnance Department of the U. S. Army. Mauchly and one of the young electronics engineers studying at Moore School, J. Presper Eckert, Jr., set to work on the design.
Gradually the design of a machine took form, and the crucial experiments on equipment were completed. In 1943, the design was settled as a special-purpose machine to calculate trajectories. Later on, the group modified the plans here and there to enable the machine to calculate a very wide class of problems. A group of Moore School electronics engineers and technicians during 1944 and 1945 built the machine, using as much as possible standard radio tubes and parts. Here, again, in spite of the successful progress of the electronic machine, the rumor that it was a “white elephant” was allowed to spread in order to protect the work from prying enemy ears.
General Organization
The main part of Eniac consists of 42 panels, which are placed along the sides of a square U. Each of these panels is 9 feet high, 2 feet wide, and 1 foot thick. They are of sheet steel, painted black, with switches, lights, etc., mounted on them. At the tops of all the panels are air ducts for drawing off the hot air around the tubes. Large motors and fans above the machine suck the heated air away through the ducts. There are also 5 pieces of equipment which can be rolled from place to place and are called portable, but there is no choice as to where they can be plugged in. We shall call this equipment panels 43 to 47.
Panels
Now what are these panels, and what do they do? Each panel is an assembly of some equipment. The names of the panels are shown in the accompanying table. The arrangement of Eniac at the Ballistic Research Laboratories as shown in the table is slightly different from the arrangement of Eniac at Moore School.
Names of Panels of Eniac
Panel No. Name (and Additional Names in Some Cases)
1 Initiating Unit 2 Cycling Unit 3, 4 Master Programmer, panels 1, 2 5 Accumulator 1 6 Accumulator 2 7 Accumulator 3 8 Accumulator 4 (Quotient) 9 Divider-Square-Rooter 10 Accumulator 5 (Numerator I) 11 Accumulator 6 (Numerator II) 12 Accumulator 7 (Denominator—Square Root I) 13 Accumulator 8 (Denominator—Square Root II) 14 Accumulator 9 (Shift I) 15 Accumulator 10 (Shift II) 16 Blank panel for new unit (Converter) 17 Accumulator 11 (Multiplier) 18 Accumulator 12 (Multiplicand) 19-21 Multiplier, panels 1, 2, 3 22 Accumulator 13 (Left-Hand Partial Products I) 23 Accumulator 14 (Left-Hand Partial Products II) 24 Accumulator 15 (Right-Hand Products I) 25 Accumulator 16 (Right-Hand Products II) 26 Blank panel for new unit (100 Registers) 27 Accumulator 17 28 Accumulator 18 29 Accumulator 19 30 Accumulator 20 31, 32 Function Table 1, panels 1, 2 33, 34 Function Table 2, panels 1, 2 35, 36 Function Table 3, panels 1, 2 37-39 Constant Transmitter, panels 1, 2, 3 40-42 Printer, panels 1, 2, 3 43-45 Portable Function Tables _A_, _B_, and _C_ 46 IBM Card Reader 47 IBM Summary Punch
_Note_: The accumulators from which a number can be sent to the printer are now accumulators 1, 2, and 15 to 20.
In reading over the table, we find a number of words that need explaining. Some of the explanation we can give in the summary of the units of Eniac:
Summary of Units of Eniac
Quantity Device Significance
20 Accumulators Store, add, and subtract numbers 1 Multiplier Multiplies 1 Divider-Square-Rooter Divides, and obtains twice the square root of a number (see Supplement 2) 3 Function Tables Part of the memory, for referring to tables of numbers 1 Constant Transmitter Stores numbers from the card reader and from hand-set switches 1 Printer Punches machine results into cards 1 Cycling Unit Controls the timing of the various parts of the machine 1 Initiating Unit Has controls for starting a calculation, for clearing, etc. 1 Master Programmer Holds the chief controls for coordinating the various parts of the machine
An accumulator is a storage counter. It can hold a number; it can clear a number; it can transmit a number either positively or negatively; and it can receive a number by adding the number in and thus holding the sum of what it held before and the number received. Eniac when first built had only 20 accumulators, and so it could remember only 20 numbers at one time (except for constant numbers set in switches). This small memory was the most serious drawback of Eniac; panel 26 was designed, therefore, to provide a great additional memory capacity.
The divider-square-rooter, as its name tells, is a mechanism that can divide and that can find twice the square root of a number. Eniac is one of the several giant brains that have had square root capacity built into them, particularly since square root is needed for solving trajectories.
Many panels of Eniac have double duty and some have triple duty. For example, panel 24 is an accumulator, but it also (1) stores the right-hand partial products (see Supplement 2) of the multiplier and (2) was a register, when Eniac was at Moore School, from which information to be punched in the printer could be obtained. Clearly, if we have a multiplication to do, we cannot also use this accumulator for storing a number that is to remain unchanged during the multiplication.
Parts
The total number of parts in Eniac is near half a million, even if we count electronic tubes as single parts. There are over 18,800 electronic tubes in the machine. It is interesting to note that only 10 kinds of electronic tubes are used in the calculating circuits and only about 60 kinds of resistors and 30 kinds of capacitors. A resistor is a device that opposes the steady flow of electric current through it to a certain extent (called resistance and measured in ohms). A capacitor is a device that can store electrical energy up to a certain extent (called capacitance and measured in farads). All these tubes and parts are standard parts in radios. All types are identified by the color labels established in standard radio manufacturing. It is the combinations of these parts, like the combinations of pieces in a chess game, that give rise to the marvelous powers of Eniac.
The combinations of parts at the first level are called plug-in units. A plug-in unit is a standard box or tray or chassis made of sheet steel containing a standard assembly of tubes, wires, and other parts. It can be pushed in or pulled out of a standard socket with many connections. An example of a plug-in unit is a decade, or, more exactly, an accumulator decade. This is just a counter wheel or decimal position expressed in Eniac language: it can express successively all the digits from 0 to 9 and then pass from 9 to 0, giving rise to a carry impulse. It is striking that a mechanical counter to hold 10 digits can be made up of 10 little wheels, ¼ inch wide and an inch high. But an accumulator in Eniac, to hold 10 digits, is a set of 10 decades each 2 inches wide and 2½ feet high.
There are only about 20 kinds of plug-in units altogether. Each plug-in unit is interchangeable with any other of the same kind. So, if a decade, for example, shows trouble, you can pull it out of its socket and plug in a spare decade instead.
Numbers
Numbers in Eniac are of 10 decimal digits with a sign that may be plus or minus. The decimal point is fixed. However, when you are connecting one accumulator with another, you can shift the decimal point if you want to. Also, 2 accumulators may be coupled together so as to handle numbers of 20 digits.
How Information Goes into the Machine
There are three ways by which information—numbers or instructions—can go into the Eniac. Numbers can be put into the machine by means of punch cards fed into the Card Reader, panel 46, or switches on the Constant Transmitter, panels 37 to 39. Numbers or instructions can also go into the machine by means of the Function Tables, panels 43 to 45. Here there are dial switches, which are set by hand. Instructions can also go into the machine by setting the switches, plugging the inputs and outputs, etc., of the wires or lines along which numbers and instructions travel.
How Information Comes Out of the Machine
There are two ways by which numerical information can come out of the machine. Numbers can come out of the machine punched on cards by the Summary Punch, panel 47. They are then printed in another room by means of a separate IBM tabulator. Also, numbers can be read out of the machine by means of the lights in the neon bulbs mounted on each accumulator. You can read in the lights of a panel the number held by the accumulator, if the panel is not computing.
How Information Is Manipulated in the Machine
Eniac handles information rather differently from any other of the big brains. Instead of having only one bus or “railroad line” along which numbers can be sent, Eniac has more than 10 such lines. They are called digit trays and labeled A, B, C, ···. Each contains 11 digit trunk lines or digit trunks—10 to carry the digits of a number, and the 11th to carry the sign. Instead of having only one telegraph line along which instructions can be sent, Eniac has more than 100 such lines. They are called program trunk lines or program trunks and labeled A1, A2, ···, A11, B1, B2, ···, B11, ···, etc. They are assembled in groups of 11 to a tray; the program trays, in fact, look just like the digit trays, except for their connectors and their purpose, which are different. Below, we shall make clear how the program trays carry control information.
Now, actually, Eniac has many more trunk lines than we have just stated, for each of the lines we have mentioned can be divided into numerous separate sections by the removal of plug connections. How we choose to do this depends on the needs of the problem, the space between the panels, the time when the line is used, etc.
Transferring Numbers, Adding, and Subtracting
Basically, a number is represented in Eniac by an arrangement of on and off electronic tube elements in pairs, called flip-flops. There is one flip-flop enclosed in a single tube (type 6SN7) for each value 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 for each of the 10 digits stored in an accumulator. So we have at least 100 flip-flops for each accumulator, and thus at least 100 electronic tubes are required to store 10 digits. Actually, an accumulator needs 550 electronic tubes. So we see that there is not very much of a future in this type of arrangement. The newer electronic brains use different devices for storage of numbers.
In order to show what number is stored in an accumulator, there are 100 little neon bulbs mounted on the face of each accumulator panel. Each bulb glows when the flip-flop that belongs to it is on. For example, suppose that the 4th decade in Accumulator 11 holds the digit 7. Then the 7th flip-flop in that decade will be on, and all the others will be off. The 7th neon bulb for that decade will glow.
Now suppose that the number 7 is in the 4th decade in Accumulator 11 and is to be added into, say, the 4th decade in Accumulator 13. And suppose that it is to be subtracted from the 4th decade in Accumulator 16. What do we do, and what will Eniac do?
First, we pick out 2 digit trays, say B and D. Accumulator 11 has 2 outputs, called the add output and the subtract output. We plug B into the add output and D into the subtract output. Then we go over to Accumulators 13 and 16. They have 5 inputs, that is, 5 ways of being plugged to receive numbers from digit trunks. These inputs are named with Greek letters, α, β, γ, δ, ε. We choose one input, say γ, for Accumulator 13, and we plug B into that input. We choose one input, say ε, for Accumulator 16, and we plug D into that input.
Now we have the “railroad” switching for numbers accomplished. We have set up a channel whereby the number in Accumulator 11 will be routed positively into Accumulator 13 and negatively into Accumulator 16. Now let us suppose that, at some definite time fixed by the control, Accumulator 11 is stimulated to transmit and Accumulators 13 and 16 are conditioned to receive. When this happens, a group of 10 pulses comes along a direct trunk from the cycling unit, and a group of 9 pulses comes along another trunk. We can think of each pulse as a little surge of electricity lasting about 2 millionths of a second. The ten-pulses, as the first group is called, are 10 millionths of a second apart. The nine-pulses, as the second group is called, are also 10 millionths of a second apart but are sandwiched between the ten-pulses. When the 1st ten-pulse comes along, the 7th flip-flop in Accumulator 11 goes off, the 8th flip-flop goes on, the following nine-pulse goes through and goes out on the subtract line to Accumulator 16. Then the 2nd ten-pulse comes along, the 8th flip-flop goes off, the 9th flip-flop goes on, and the next nine-pulse goes out on the subtract line to Accumulator 16. Now the decade sits at 9, and for this reason the next ten-pulse changes an electronic switch (actually another flip-flop) so that all later nine-pulses will go out on the add line. This ten-pulse also turns off the 9th flip-flop and turns on the 0th flip-flop without causing any carry. Now the 4th of the ten-pulses comes along, turns the 0th flip-flop off, and turns the 1st flip-flop on, and the next nine-pulse goes out on the add line to Accumulator 13. The next 6 of the ten-pulses then come along and change Accumulator 11 back to the digit 7 as before, and the next 6 of the nine-pulses go out to Accumulator 13. Thus Eniac has added 7 into Accumulator 13, has added 2, the nines complement of 7 (see Supplement 2), into Accumulator 16, and has left Accumulator 11 holding the same number as before. This is just the result that we wanted.
In this way, the nines complement of any digit in a decade is transferred out along the subtract line, and the digit unchanged is transmitted out along the add line. As the pulses arrive at any other accumulator, they add into that accumulator.
Multiplying and Dividing
Eniac performs multiplication by a built-in table of the products in the 10-by-10 multiplication table, using the method of left-hand components and right-hand components (see Supplement 2). For example, suppose that the 3rd digit of the multiplier is 7 and that the 5th digit of the multiplicand is 6. Then, when Eniac attends to the 3rd digit of the multiplier, the right-hand digit of the 42 = 6 × 7 is gathered in one accumulator, and the left-hand digit 4 is gathered in another accumulator. After Eniac has attended to all the digits of the multiplier, then Eniac performs one more addition and transfers the sum of the left-hand digits into the right-hand digits accumulator.
Eniac does division in rather a novel way. First, the divisor is subtracted over and over until the result becomes negative or 0. Then the machine shifts to the next column and adds the divisor until the result becomes positive or 0. It continues this process, alternating from column to column. For example, suppose that we divide 3 into 84 in this way. We have:
______ _ 3 ) 84 ( 32 -3 —— +54 -3 —— +24 -3 —— -6 +3 —— -3 +3 —— 0
After we subtract 3 the third time, the result becomes negative,-6; in the next column, after we add 3 twice, the result becomes 0. The quotient is
_ 32, which is the same as 30 - 2, or 28;
and 3 × 28 is 84. Thus the process checks.
Consulting a Table
Eniac has three Function Tables. Here you can store numbers or instructions for the machine to refer to. Each Function Table has 104 arguments (see Supplement 2). For each argument, you can store 12 digits and 2 signs that may be plus or minus. This capacity can be devoted to one 12-digit number with a sign, or to two 6-digit numbers each with a sign, or to six 2-digit instructions. The three Function Tables are panels 43, 44, and 45. To put in the numbers or instructions, you have to go over to these panels and set the numbers or instructions, digit by digit, turning dial switches by hand. It is slow and hard to do this right, but once it is done, Eniac can refer to any number or instruction in any table in ¹/₁₀₀₀ of a second. This is much faster than the table reference time in any other of the giant brains built up to 1948.
Programming
We said above that Eniac has over 100 control lines or program trunks along which instructions can be sent. These instructions are expressed as pulses called program pulses. Now how do we make these pulses do what we want them to do? For example, how can we instruct Accumulator 11 to add what it holds into Accumulator 13?
On each unit of Eniac there are plug hubs or sockets (called program-pulse input terminals) to which a program trunk may be connected. A program pulse received here can make the unit act in some desired way. On each accumulator of Eniac, we find 12 program-pulse input hubs. Corresponding to each of these hubs, there is a nine-way switch, called a program-control switch. The setting of this switch determines what the accumulator will do when the program-pulse input hub belonging to the switch receives a program pulse. For instance, there are switch settings for: receive input on the α line, receive input on the β line, etc.; and transmit output on the add line, etc. There is even a switch setting that instructs the accumulator to do nothing, and this instruction may be both useful and important.
Now, in order that Accumulator 11 may transfer a number to Accumulator 13, we need: (1) a digit tray, say B, for the number to travel along; (2) a program trunk line, say G3, to tell Accumulator 11 when to send the number and Accumulator 13 when to receive it; and (3) certain plugging as follows:
1. We plug from program trunk G3 into a program-pulse input hub, say No. 5, of Accumulator 11;
2. We plug from the same program trunk G3 into a program-pulse input hub, say No. 7, of Accumulator 13;
3. We set program-control switch No. 5 of Accumulator 11 to “add”;
4. We set program-control switch No. 7 of Accumulator 13 to some input, say γ.
5. We plug from digit tray B into the add output of Accumulator 11.
6. We plug from digit tray B into the γ input of Accumulator 13.
Now, when the program pulse comes along line G3, it makes Accumulator 13 transmit additively along digit tray B into Accumulator 13. And that is the result that we wanted.
As each mechanism of Eniac finishes what it is instructed to do, it may or may not put out a program pulse. This pulse in turn may be plugged into any other program trunk line and may stimulate another mechanism to act. Then, when this mechanism finishes, it too may or may not put out a program pulse, and so on.
In general, there are two different ways to instruct Eniac to do a problem. One way is to set all the switches, plug all the connections, etc., for the specific problem. This is a long and hard task. Very often, even with great care, it is done not quite correctly, and then the settings must be carefully checked all over again. A second method (called the von Neumann programming method) is to store all the instructions for a problem in one or two function tables of Eniac and then tell Eniac to read the function tables in sequence and to do what they say. The rest of the machine is then wired up in a standard fashion. This method of instructing Eniac was proposed by Dr. John von Neumann of the Institute of Advanced Study at Princeton, N. J. Eniac has been modified to the slight extent needed so that this method can be used when desired. In this method, each instruction is a selected one of 60 different standard instructions or orders—one of them, for example, being “multiplication.” Each standard order is expressed by 2 decimal digits. The 60 standard orders are sufficient so that Eniac can do any mathematical problem that does not overstrain its capacity. Since each of the 3 Function Tables can hold 600 2-digit instructions, the machine can hold a program of 1800 instructions under the von Neumann programming method.