General Organization of Mit Differential Analyzer No. 2
A differential analyzer is basically made up of shafts that turn. When we set up the machine to solve a differential equation, we assign one shaft in the machine to each quantity referred to in the equation. It is the job of that shaft to keep track of that quantity. The total amount of turning of that shaft at any time while the problem is running measures the size of that quantity at that time. If the quantity decreases, the shaft turns in the opposite direction. For example, if we have speed, time, and distance in a differential equation, we label one shaft “speed,” another shaft “time,” and another shaft “distance.” If we wish, we may assign 10 turns of the “time” shaft to mean “one second,” 2 turns of the “distance” shaft to mean “one foot,” and 4 turns of the “speed” shaft to mean “one foot per second.” These are called scale factors. We could, however, use any other convenient units that we wished.
By just looking at a shaft or a wheel, we can tell what part of a full turn it has made—a half, or a quarter, or some other part—but we cannot tell by looking how many full turns it has made. In the machine, therefore, there are mechanisms that record not only full turns but also tenths of turns. These are called counters. We can connect a counter to any shaft. When we want to know some quantity that a shaft and counter are keeping track of, we read the counting mechanism.
The second differential analyzer, which MIT finished in 1942, went a step further than any previous one. In this machine, a varying number can be expressed either (1) mechanically as the amount of turning of a shaft, or (2) electrically as the amount of two voltages in a pair of wires. The MIT men did this by means of a mechanism called an angle-indicator.
Angle indicators have essentially three parts: a transmitter, a receiver, and switches. The transmitter (Fig. 10) can sense the exact amount that a shaft has turned and give out a voltage in each of two wires which tells exactly how much the shaft has turned (Fig. 11). The receiving device (Fig. 12), which has a motor, can take in the voltages in the two wires and drive a second shaft, making it turn in step with the first shaft. By means of the switchboard (Fig. 13), the two wires from the transmitter of any angle-indicator can lead anywhere in the machine and be connected to the receiver of any other angle indicator.
In a differential analyzer, we can connect the shafts together in many different ways. For example, suppose that we want one shaft b to turn twice as much as another shaft a. For this to happen we must have a mechanism that will connect shaft a to shaft b and make shaft b turn twice as much as shaft a. We can draw the scheme of this mechanism in Fig. 14: a box, standing for any kind of simple or complicated mechanism; a line going into it, standing for input of the quantity a; a line going out of it, standing for output of the quantity b; and a statement saying that b equals 2a.
One mechanism that will make shaft b turn twice as much as shaft a is a pair of gears such that: (1) they mesh together and (2) the gear on shaft a has twice as many teeth as the gear on shaft b (Fig. 15). On the mechanical differential analyzer that MIT finished in 1930, a pair of gears was the mechanism actually used for doubling. To make one shaft turn twice as much as another by this device, we would: go over to the machine with a screwdriver; pick out from a box two gears, one with twice as many teeth as the other; slide them onto the shafts that are to be connected; make the gears mesh together; and screw them tight on their shafts.
On the MIT differential analyzer No. 2, however, we are better off. A much more convenient device for doubling is used. We make use of: a gearbox in whichthere are two shafts that may be geared so that one turns twice as much as the other, and two angle-indicator transmitters and receivers. Looking at the drawing (Fig. 16), we can see that: shaft a drives shaft c to turn in step, shaft c drives shaft d to turn twice as much, and shaft d drives shaft b to turn in step. Here we can accomplish doubling by closing the pairs of switches that connect to the gearbox shafts.
[Illustration: Angle indicators: T, transmitters, and R, receivers
FIG. 16. Another example of a doubling mechanism.]
Above, we have talked about a mechanism with gears that would multiply the amount of turning by the constant ratio 2. But, of course, in a calculation, any ratio, say 7.65, 3.142, ···, might be needed, not only 2. In order to handle various constant ratios, gearboxes of two kinds are in differential analyzer No. 2. The first kind is a one-digit gearbox. It can be set to give any of 10 ratios, 0.1, 0.2, 0.3, ···, 1.0. The second kind is a four-digit gearbox. It can be set to give any one of more than 11 thousand ratios, 0.0000, 0.0001, 0.0002, ···, 1.1109, 1.1110. We can thus multiply by constant ratios.
Adders
We come now to a new mechanism, whose purpose is to add or subtract the amount of turning of two shafts. It is called an adder. The scheme of it is shown in Fig. 17: an input shaft with amount of turning a, another input shaft with amount of turning b, and an output shaft with amount of turning a + b. The adder essentially is another kind of gearbox, called a differential gear assembly. This name is confusing: the word “differential” here has nothing to do with the word “differential” in “differential analyzer.” This mechanism is very closely related to the “differential” in the rear axle of a motor car, which distributes a driving thrust from the motor to the two rear wheels of the car.
A type of differential gear assembly that will add is shown in Fig. 18. This is a set of 5 gears A to E. The 2 gears A and B are input gears. The amount of their turning is a and b, respectively. They both mesh with a third gear, C, free to turn, but the axis of C is fastened to the inside rim of a fourth, larger gear, D. Thus D is driven, and the amount of its turning is (a + b)/2. This gear meshes with a gear E with half the number of teeth, and so the amount of turning of E is a + b.
We can subtract the turning of one shaft from the turning of another simply by turning one of the input shafts in the opposite direction.
Integrators
Another mechanism in a differential analyzer, and the one that makes it worth while to build the machine, is called an integrator. This mechanism carries out the process of integrating, of adding up a very large number of small changing quantities. Figure 19 shows what an integrator is. It has three chief parts: a disc, a little wheel, and a screw. The round disc turns horizontally on its vertical shaft. The wheel rests on the disc and turns vertically on its horizontal shaft. The screw goes through the support of the disc; when the screw turns, it changes the distance between the edge of the wheel and the center of the disc.
Now let us watch this mechanism move. If the disc turns a little bit, the wheel pressing on it must turn a little bit. If the screw turns a small amount, the distance between the edge of the wheel and the center of the disc changes. The amount that the wheel turns is doubled if its distance from the center of the disc is doubled, and halved if that distance is halved. So we see that:
(_the total amount that the wheel turns_) EQUALS THE SUM OF ALL THE SMALL (_amounts of turning_), EACH EQUAL TO: A BIT OF (_disc turning_) MULTIPLIED BY THE (_distance from the center of the disc to the edge of the wheel_) APPLYING TO THAT BIT
If we look back at our discussion of integrating (p. 72), we see that the capital words here are just the same as those used there. Thus we have a mechanism that expresses integration:
(the total amount that the wheel turns) EQUALS THE INTEGRAL OF (the distance from the center of the disc to the wheel) WITH RESPECT TO (the amount that the disc turns)
The scheme of this mechanism is shown in Fig. 20.
For example, suppose that the screw measures the speed at which a car travels and that the disc measures time. The wheel, consequently, will measure distance traveled by the car. The mechanism INTEGRATES speed with respect to time and gives distance.
This mechanism is the device that Lord Kelvin talked about in 1879 and that Dr. Bush made practical in 1925. The mechanical difficulty is to make the friction between the disc and the wheel turn the wheel with enough force to do other work. In the second differential analyzer, the angle indicator set on the shaft of the wheel solves the problem very neatly.
Function Tables
The behavior of some physical quantities can be described only by a series of numbers or a graphic curve. For example, the resistance or drag of the air against a passing object is related to the speed of the object in a rather complicated way. Part of the relation is called the drag coefficient or resistance coefficient; a rough graph of this is shown in Fig. 21. This graph shows several interesting facts: (1) when the object is still, there is no air resistance; (2) as it travels faster and faster, air resistance rapidly increases; (3) when the object travels with the speed of sound, resistance is very great and increases enormously; (4) but, when the object starts traveling with a speed about 20 per cent faster than sound, the drag coefficient begins to decrease. This drawing or graph shows in part how air resistance depends on speed of object; in other words, it shows the drag coefficient as a function of speed (see Supplement 2).
Now we need a way of putting any function we wish into a differential analyzer. To do this, we use a mechanism called a function table. We draw a careful graph of the function according to the scale we wish to use, and we set the graph on the outside of a large drum (Fig. 22). For example, we can put the resistance coefficient graph on the drum; the speed (or independent variable) goes around the drum, and the resistance coefficient (or dependent variable) goes along the drum. The machine slowly turns the drum, as may be called for by the problem. A girl sits at the function table and watches, turning a handwheel that keeps the sighting circle of a pointer right over the graph. The turning of the handwheel puts the graphed function into the machine. Instead of employing a person, we can make one side of the graph black, leaving the other side white, and put in a phototube (an electronic tube sensitive to amount of light) that will steer from pure black or pure white to half and half (see Fig. 23).
We do not need many function tables to put in information, because we can often use integrators in neat combinations to avoid them. We shall say more about this possibility later.
We can also use a function table to put out information and to draw a graph. To do so, we disconnect the handwheel; we connect the shaft of the handwheel to the shaft that records the function we are interested in; we take out the pointer and put in a pen; and we put a blank sheet of graph paper around the drum.
We have now described the main parts of the second MIT differential analyzer. They are the parts that handle numbers. We can now tell the capacity of the differential analyzer by telling the number of main parts that it holds:
Shafts About 130 One-digit gearboxes 12 Four-digit gearboxes 16 Adders About 16 Integrators 18 Function tables 3
On a simpler level, we can say that the machine holds these physical parts:
Miles of wire About 200 Relays About 3000 Motors About 150 Electronic tubes About 2000
Instructing the Mit Differential Analyzer No. 2
Besides the function tables for putting information into the machine, there are three mechanisms that read punched paper tape. The three tapes are called the A tape, the B tape, and the C tape. From these tapes the machine is set up to solve a problem.
Suppose that we have decided how the machine is to solve a problem. Suppose that we know the number of integrators, adders, gearboxes, etc., that must be used, and know how their inputs and outputs are to be connected. To carry out the solution, we now have to put the instructions and numbers into the machine.
The A tape contains instructions for connecting shafts in the machine. Each instruction connects a certain output of one type of mechanism (adder, etc.) to a certain input of another type of mechanism. When the machine reads an instruction on this tape, it connects electrically the transmitting angle-indicator of an output shaft to the receiving angle-indicator of another input shaft.
Now the connecting part of the differential analyzer behaves as if it were very intelligent: it assigns an adder or an integrator or a gearbox, etc., to a new problem only if that mechanism is not busy. For example, if a problem tape calls for adder 3 (in the list belonging to the problem), the machine will assign the first adder that is not busy, perhaps adder 14 (in the machine), to do the work. Each time that adder 3 (in the problem list) is called for in the A tape, the machine remembers that adder 14 was chosen and assigns it over again. This ability, of course, is very useful.
The B tape contains the ratios at which the gearboxes are to be set. For example, suppose that we want gearbox 4 (in the problem list) to change its input by the ratio of 0.2573. The machine, after reading the A tape, has assigned gearbox 11 (in the machine list). Then, when the machine reads the B tape, it sets the ratio in gearbox 11 to 0.2573.
The answer to a differential equation is different for different starting conditions. For example, when we know speed and time and wish to find distance traveled and where we have arrived, we must know the point at which we started. We therefore need to arrange the machine so that we can put in different starting conditions (or different initial conditions, as the mathematician calls them).
The C tape puts the initial conditions into the machine. For example, reading the C tape for the problem, the machine finds that 3000 should, at the start of the problem, stand in counter 4. The machine then reads the number at which counter 4 actually stands, say 6728.3. It subtracts the two numbers and remembers the difference, -3728.3. And whenever the machine reads that counter later, finding, say, 9468.4 in it, first the 3728.3 is subtracted, and then the answer 5740.1 is printed.
Answers
Information may come out of the machine in either one of two ways: in printed numbers or in a graph. In fact, the same quantity may come out of the machine in both ways at the same time. To obtain a graph, we change a function table from input to output, put a pen on it, and have it draw the graph.
The machine has 3 electric typewriters. The machine will take numerical information out of the counters at high speed even while they are turning, and it will put the information into relays. Then it will read from the relays into the typewriter keys one by one while they type from left to right across the page.
How the Differential Analyzer Calculates
Up to this point in this chapter, the author has tried to tell the story of the differential analyzer 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.
We have described how varying quantities, or variables, are operated on in the machine in one way or another: adding, subtracting, multiplying by a constant, referring to a table, and integrating. What do we do if we wish to multiply 2 variables together? A neat trick is to use the formula:
_xy_ = ⌠_x dy_ + ⌠_y dx_ ⌡ ⌡
To multiply in this way requires 2 integrators and 1 adder. The connections that are made between them are as follows:
Shaft _x_ To Integrator 1, Screw Shaft _x_ To Integrator 2, Disc Shaft _y_ To Integrator 1, Disc Shaft _y_ To Integrator 2, Screw Integrator 1, Wheel To Adder 1, Input 1 Integrator 2, Wheel To Adder 1, Input 2 Adder 1, Output To Shaft expressing _xy_
A product of 2 variables under the integral sign can be obtained a little more easily, because of the curious powers of the differential analyzer. Thus, if it is desired to obtain ∫xy dt, we can use the formula:
┌ ┐ ⌠ ⌠ │ ⌠ │ │_xy dt_ = │_x d_│ │ _y dt_ │ ⌡ ⌡ │ ⌡ │ └ ┘
and this operation does not require an adder. The connections are as follows:
Shaft _t_ To Integrator 1, Disc Shaft _y_ To Integrator 1, Screw Integrator 1, Wheel To Integrator 2, Disc Shaft _x_ To Integrator 2, Screw Integrator 2, Wheel To Shaft expressing ∫_xy dt_
In order to get the quotient of 2 variables, x/y, we can use some more tricks. First, the reciprocal 1/y can be obtained by using the two simultaneous equations:
⌠ 1 ⌠ 1 │ ———— _dy_ = log _y_, │ - ———— _d_(log _y_) = _y_ ⌡ _y_ ⌡ _y_
The connections are as follows:
Shaft y To Integrator 1, Disc AND TO Integrator 2, Wheel Shaft log y To Integrator 1, Wheel AND TO Integrator 2, Disc Shaft 1/y To Integrator 1, Screw, AND NEGATIVELY TO Integrator 2, Screw
In order to get x/y, we can then multiply x by 1/y. We see that this setup gives us log y for nothing, that is, without needing more integrators or other equipment. Clearly, other tricks like this will give sin x, cos x, eˣ, x², and other functions that satisfy simple differential equations.
An integral of a reciprocal can be obtained even more directly. Suppose that
⌠ 1 _y_ = │ ————— _dt_ ⌡ _x_
1 Then _Dₜy_ = —————, _D{_y} t_ = _x_, _x_
⌠ and _t_ = │_x dy_ ⌡
The connections therefore are:
Shaft _t_ To Integrator, Wheel Shaft _x_ To Integrator, Screw Shaft _y_ To Integrator, Disc
The light wheel then drives the heavy disc. Clearly only the angle-indicator device makes this possible at all. Naturally, the closer the wheel gets to the center of the disc, that is, x approaching zero, the greater the strain on the mechanism, and the more likely the result is to be off. Mathematically, of course, the limit of 1/x as x approaches zero equals infinity, and this gives trouble in the machine.
There is no standard mathematical method for solving any differential equation. But the machine provides a standard direct method for solving all differential equations with only one independent variable. First: assign a shaft for each term that appears in the equation. For example, the highest derivative that appears and the independent variable are both assigned shafts. The integral of the highest derivative is easily obtained, and the integral of that integral, etc. Second: connect the shafts so that all the mathematical relations are expressed. Both explicit and implicit equations may be expressed. Third: for any shaft there must be just one drive, or source of torque. A shaft may, however, drive more than one other shaft. Fourth: choose scale factors so that the limits of the machine are not exceeded yet at the same time are well used. For example, the most that an integrator or a function table can move is 1 or 2 feet. Also, the number of full turns made by a shaft in representing its variable should be large, often between 1000 and 10,000.
Of course, as with all these large machines, anyone would need some months of actual practice before he could put on a problem and get an answer efficiently.
An Appraisal of the Machine
The second MIT differential analyzer is probably the best machine ever built for solving most differential equations. It regularly has an accuracy of 1 part in 10,000. This is enough for most engineering problems. If greater accuracy is needed, the second differential analyzer cannot provide it. Once in a while the machine can reach an accuracy of 1 part in 50,000; but, to balance this, it is sometimes less accurate than 1 part in 10,000.
The MIT differential analyzer No. 2 can find answers to problems very quickly. The time for setting up a problem to be run on the machine ranges from 5 to 15 minutes. The time for preparing the tapes that set up the problem is, of course, longer; but the punch for preparing the tape is a separate machine and does not delay the differential analyzer. The time for the machine to produce a single solution to a problem ranges usually from 3 minutes to a half-hour. It is easy to put on a problem, run a few solutions, take the problem off, study the results, change a few numbers, and then put the problem back on again. This virtue is a great help in a search in a new field. While the study is going on, time is not wasted, for the machine can be busy with a different problem.
Running a problem a second time is a good check on the reliability of an answer. For, when the problem is run the second time, we can arrange that the machine will route the problem to other mechanisms.
The machine has a control panel. Here the operator watching the machine can tell what units are doing what parts of what problems. If a unit gives trouble or needs to be inspected, the clerk can throw a “busy” switch. Then the machine cannot choose that unit for work to be done. The machine contains many protecting signals and alarms. It is idle for repairs less than 5 per cent of the time.
It is not easy to determine the total cost of the machine, for it was partially financed by several large gifts. Also, much of the labor was done by graduate students in return for the instruction that they gained. The actual out-of-pocket cost was about $125,000. If the machine were to be built by industry, the cost would likely be more than 4 times as much. A simple differential analyzer, however, can be cheap. Small scale differential analyzers have been built for less than $1000; their accuracy has been about 1 part in 100.
There are many things that this machine cannot do; it was not built to do them. (1) It cannot choose methods of solution. (2) It cannot perform steps in solving a problem that depend on results as they are found. (3) It cannot solve differential equations containing two or more independent variables. Such equations are called partial differential equations; they appear in connection with the flow of heat or air or electricity in 2 or 3 dimensions, and elsewhere. (4) It cannot solve problems requiring 6 or more digits of accuracy. (5) The machine, while running, can store numbers only for an instant, since it operates on the principle of smoothly changing quantities; however, when the machine stops, the number last held by each device is permanently stored.
None of these comments, however, are criticisms of the machine. Instead they show avenues of development for future machines. As was said before, for solving most differential equations, this machine has no equal to date. The range of problems which any differential analyzer can do depends mostly on the number of its integrators. The second differential analyzer has 18 and provides for expansion to 30. The machine is constructed, also, so that it can be operated in 3 independent sections, each working to solve a different problem. The differential analyzer can operate unattended. After it has been set up and the first few results examined, it can be left alone to grind out large blocks of answers.
An interesting example of the experimental use of a differential analyzer in a commercial business is the following: In Great Britain, R. E. Beard of the Pearl Assurance Company built a differential analyzer with 6 integrators. He applied this machine to compute to 3 figures certain insurance values known as continuous annuities and continuous contingent insurances. He has described the machine and the application he made in a paper published in the Journal of the Institute of Actuaries, Vol. 71, 1942, pp. 193-227.
Chapter 6
Accuracy to 23 Digits:
Harvard’s Ibm Automatic
Sequence-controlled Calculator
One of the first giant brains to be finished was the machine in the Computation Laboratory at Harvard University called the IBM Automatic Sequence-Controlled Calculator. This great mechanical brain started work in April 1944 and has been running 24 hours a day almost all the time ever since. It has produced quantities of information for the United States Navy. Although many problems that have been placed on it have been classified by the Navy as confidential, the machine itself is fully public. The way it was working on Sept. 1, 1945, has been thoroughly described in a 540-page book published in 1946, Volume I of the Annals of the Harvard Computation Laboratory, entitled Manual of Operation of the Automatic Sequence-Controlled Calculator. Since then the machine has been improved in many ways.
This machine does thousands of calculating steps, one after another, according to a scheme fixed ahead of time. This property is what gives the machine its name: automatic, since the individual operations are automatic, once the punched tape fixing the chain of operations has been put on the machine, and sequence-controlled, since control over the sequence of its operations has been built into the machine.
Origin and Development
More than a hundred years ago, an English mathematician and actuary, Charles Babbage (1792-1871), designed a machine—or engine as he called it—that would carry out the sequences of mathematical operations. In the 1830’s he received a government grant to build an analytical engine whereby long chains of calculations could be performed. But he was unsuccessful, because the refined physical devices necessary for quantities of digital calculation were not yet developed. Only in the 1930’s did these physical devices become sufficiently versatile and reliable for a calculator of hundreds of thousands of parts to be successful.
The Automatic Sequence-Controlled Calculator at Harvard was largely the concept of Professor Howard H. Aiken of Harvard. It was built through a partnership of efforts, ideas, and engineering between him and the International Business Machines Corporation, in the years 1937 to 1944. The calculator was a gift from IBM to Harvard University. Some very useful additional control units, named the Subsidiary Sequence Mechanism, were built at the Harvard Computation Laboratory in 1947 and joined to the machine.
General Organization
The machine (see Fig. 1) is about 50 feet long, 8 feet high, and about 2 feet wide. It consists of 22 panels; 17 of them are set in a straight line, and the last 5 are at the rear of the machine. In the scheme of the machine shown in Fig. 1, the details you would see in a photograph have been left out. Instead you see the sections of the machine that are important because of what they do: input, memory, control, and output. Why do we not see a section labeled “computer”? Because in this mechanical brain the computing part of the machine is closely joined to the memory: every storage register can add and subtract. We shall soon discuss these sections of the machine more fully.
Physical Devices
Now in order for any brain to work, physical devices must be used. For example, in the human body, a nerve is the physical device that carries information from one part of the body to another. In the Harvard machine, an insulated wire is the physical device that carries information from one part of the machine to another. One side of every panel in the Harvard machine is heavily laden with a great network of wires. Between the panels, you can see in many places cables as thick as your arm and containing hundreds of wires. More than 500 miles of wire are used.
The physical devices in the Harvard machine are numerous, as we would expect. It is perhaps not surprising that this machine has more than 760,000 parts. But, curiously enough, there are only 7 main kinds of physical devices in the major part of the machine. They are: wire, two-position switches, two-position relays (see Chapter 2), ten-position switches, ten-position relays, buttons, and cam contacts (see below). These are the devices that handle information in the form of electrical impulses. They can be combined by electrical circuits in a great variety of ways. There are, of course, other kinds of physical devices that are important, but they are not numerous, and they have rather simple duties. Looking at the machine, you can see three examples easily. Physical devices of the first kind convert punched holes into electrical impulses: 2 card feeds, 4 tape feeds. Those of the second kind convert electrical impulses into punched holes: 1 card punch, 1 tape punch. Those of the third kind convert electrical impulses into printed characters: 2 electric typewriters. We can think of a fourth kind of physical device that would be a help, but, at present writing, it does not yet exist: a device that converts printed characters into electrical impulses.
The Harvard machine, of course, is complicated. But it is complicated because of the variety of ways in which relatively simple devices have been connected together to make a machine that thinks.
Switches
A two-position switch (see Fig. 2) turned by hand connects a wire to either one of 2 others. These 2 positions may stand for “yes” and “no,” 0 and 1, etc. There are many two-position switches in the machine. A ten-position switch or dial switch (see Fig. 3) turned by hand connects the wire running into the center of the switch with a wire at any one of ten positions 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 around the edge. There are over 1400 dial switches in the machine. How does turning the pointer on the top of the dial make connection between the center wire and the edge wire? Under the face of the dial is the part that works, a short rod of metal fastened to the pointer (shown with dashes in Fig. 3). When the pointer turns, this rod also turns, making the desired connection.
Relays
Two-position relays—more often called just relays (see Chapter 2)—do the automatic routing of the electrical impulses that cause computing to take place. Each relay may take 2 positions, open or closed, and these positions may stand for 0 and 1. There are more than 3000 relays in the Harvard machine.
A magnet pulling one way and a spring pulling the other way are sufficient in an ordinary relay to give 2 positions, “on” and “off,” “yes” and “no,” 0 and 1. But how do we make a relay that can hold any one of 10 positions? Figure 4 shows one scheme for a ten-position relay. The arm can take any one of 10 positions, connecting the contact Common to any one of the contacts O, 1, 2, 3, 4, 5, 6, 7, 8, and 9 so that current can flow. The gear turns all the time. When an impulse comes in on the Pickup line, the clutch connects the arm to the gear. When an impulse comes in on the Drop-out line, the clutch disconnects the arm from the gear. For example, suppose that the ten-position relay is stopped at contact 2, as shown. Suppose that we now pick up the relay, hold it just long enough to turn 3 steps, and then drop it out. The relay will now rest at contact 5.
In the Harvard machine, the ten-position relays, much like the scheme shown, do the same work as counter wheels (Fig. 5) in an ordinary desk calculating machine, and so they are often spoken of as counter positions in the Harvard machine. They are very useful in the machine not only because they express the 10 decimal digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 but also because adding and subtracting numbers is accomplished by turning them through the proper number of steps. In fact, an additional impulse is provided when the counter position turns from 9 to 0, for purposes of carry. A group of 24 counter positions makes up each storage counter—or storage register—in the machine. There are 2200 of these counter positions. Each is connected to a continuously running gear on a small shaft (Fig. 6). All these shafts are connected by other gears and shafts to a main drive shaft, and they are driven by a 5-horsepower motor at the back of the machine. When a counter position is supposed to step, a clutch connects the drive to the running gear, and the counter position steps. When the counter position is supposed to stay unchanged, the clutch is disconnected and the driving gear runs free. In fact, when you first approach the Harvard machine, about the first thing you are aware of is the running of these gears and the intermittent whirring and clicking of the counter positions as they step. The machine gives a fine impression of being busy!
Timing Contacts
A button (see Fig. 7) is a device for closing an electric circuit when and only when you push it. A simple example is the button for ringing a bell: you push the button, a circuit is closed, and something happens. When you let go, the circuit is opened. The Harvard machine has a button for starting, a button for stopping, and many others.
A cam contact (see Fig. 8) is an automatic device for closing an electric circuit for just a short interval of time. When the lobes on the cam strike the contact, it closes and current flows. When the lobes have gone by, the spring pushes open the contact, and no current flows. Just as a two-position relay is the automatic equivalent of a two-position switch, and a ten-position relay is the automatic equivalent of a ten-position switch, so a cam contact is the automatic equivalent of a button.
All the cams in the machine have 20 pockets where small round metal lobes may or may not be inserted. Each cam makes a full turn once in ³/₁₀ of a second and is in time with all the others. Thus we can time all the electrical circuits in the machine in units of ³/₂₀₀ of a second.
Numbers
Numbers in the machine regularly consist of 23 decimal digits. The 24th numerical position at the left in any register contains only 0 for a positive number and only 9 for a negative number. Nines complements (see Supplement 2) are used for negative numbers. For example,-00284 is represented as 999715, supposing that we had 5-digit numbers instead of 23-digit numbers. The sum of two nines complements is automatically corrected so that it is still a correct nines complement. The device that accomplishes this is called end-around-carry (see Supplement 2). The decimal point is fixed for each problem; in other words, in any problem, the decimal point is consistently kept in one place, usually between the 15th and 16th decimal columns from the right.
How Information Goes into the Machine
Numerical information may go into the machine in any one of 3 ways: (1) by regular IBM punch cards, using standard IBM card feeds (panel 16); (2) by hand-set dial switches (panels 1, 2); and (3) by long loops of punched tape placed on the value tape feeds (panels 12 to 14). Three sets of 24 columns each punched on a regular IBM punch card can be used to send 3 numbers and their signs into the machine in one machine cycle. This is the fastest way for giving numbers to the machine, but the most limited; for the cards must be referred to in order and can be referred to automatically only once. Also, there is the risk that they may be out of order. A card may be passed through the machine without reading; this saves some sorting in preparing cards for the machine. Machines for preparing the cards are regular IBM key punches, and machines for sorting them after preparation are regular IBM card sorters.
In panels 1 and 2 there are 60 registers by which unchanging numbers like 1, or 3.14159265···, or 7.65 may be put into the machine. These are called the constant registers. Each constant register consists of 24 dial switches and contains 23 digits and a sign, 0 if positive and 9 if negative. Whenever the mathematician says a certain constant is needed for a problem, the operator of the machine walks over to these panels, and, while the machine is turned off, sets the dial switches for the number, one by one, by hand. If we need 40 constants of 10 digits each for a problem, then the operator sets 400 dial switches by hand and makes certain that the remaining 14 switches in each of the 40 constant registers used are either at 0 or 9, depending on the sign of the number. Only then can he return to start the machine.
The third means by which numerical information can be put into the machine is the value tape feeds, in panels 12, 13, and 14. Here the machine can consult tables of numbers. The numbers are punched on paper tape 24 holes wide, made of punch-card stock. Tapes for the value tape feeds may be prepared by hand or by the machine itself using punch cards or machine calculation. The tapes use equally spaced arguments (see Supplement 2). The tape punch changes the decimal digits in its keyboard into the following punching code (see Fig. 9):
0 0000 5 1100 1 1000 6 1010 2 0100 7 1001 3 0010 8 0110 4 0001 9 0101
Here the 1 denotes a punched hole and 0 no punched hole, and the 4 columns from left to right of the code correspond to 4 rows of the paper tape from bottom to top. To make sure the value tape is correct, the machine itself can read the value tape and check it mathematically or compare it with punch-card values.
How Information Comes Out of the Machine
Information comes out of the machine in any one of three ways: (1) by punching on IBM cards with a regular IBM card punch that is built into the machine (panel 17), (2) by typing on paper sheets with electric typewriters (panels 16 and 17), and (3) by punching paper tape 24 holes wide of the same kind as is fed into the machine.
Usually, one of the electric typewriters is used to print a result for a visual check and to print it before the machine makes a specified check of the value. Then, about 10 seconds later, after the result has been checked as specified in the machine, the checked result is printed by the second typewriter. In the second typewriter, a special one-use carbon ribbon of paper is used to produce copy for publication by a photographic process.
The card punch writes a number more rapidly than an electric typewriter. This extra speed is sometimes very useful. However, the punch’s chief purpose is to record intermediate results on punch cards. Then, if there is a machine failure, and if the problem has been well organized, the problem may be run over from these intermediate results, instead of requiring a return to the original starting information. The tape punch used for preparing tape by hand can also be operated by cable from the machine.
How Information Is Handled in the Machine
The machine is a mechanical brain. So, between taking in information and putting out information, the machine does some “thinking.” It does this thinking according to instructions. The instructions go into the machine as: (1) the setting of switches, or (2) the pressing of buttons, or (3) the wiring of plugboards, or (4) feeding in tape punched with holes. The instructions are remembered in the machine in these 4 ways, and we can call these sets of devices the control of the machine.
To illustrate: One of the buttons pressed for every problem is the Start Key: when you press it, the machine starts to work on the problem. One of the switches with which you give instructions is a switch that turns electric typewriter 1 on or off. One of the plugboards contains some hubs by which you can tell the machine how many figures to choose in the quotient when dividing, for clearly you do not need a quotient of 23 figures every time the machine divides. You can have 5 choices in any one problem; you can specify them by plugging, and you can call for any one of 5 choices of quotient size from time to time during the problem. In many cases, when we wish the machine to do the same thing for all of a single problem and do it whenever the occasion arises, we can put the instruction into the wiring of a plugboard. We use plugboard wiring, for example, in fixing the decimal point in multiplication, so that the product will read out properly, and in guiding the operation of the typewriters, so that printing will take place in the columns where we want it.
Sequence of Steps
The most important part of the control of the machine is the sequence-tape feed and its sequence-control tape. These tell the machine a great part of what operations are to be performed.
At the end of the room where the machine is, there is the special tape punch mentioned above. It holds a big spool of card stock that is thin, flexible, smooth, and tough. With one keyboard we may prepare value tape. With another keyboard we prepare the sequence-control tape. The tape (see Fig. 10) contains places for 24 round punched holes in each row. Some and only some of these holes are punched. Each row of punched holes is equivalent to an instruction to the machine and is called a line of coding or coding line. In general, the instruction has the form:
Take a number out of Register A; put the number into Register B; and perform operation C.
The first group of 8 holes at the left is called the A field or the out-field. Here we tell the machine where a number is to be taken from. The middle group of 8 holes is called the B field or the in-field. Here we tell the machine where a number is to be put. The last group of 8 holes is called the C field or the miscellaneous field. Here we tell the machine part or all of the operation that is to be performed.
To illustrate (see Fig. 10), we have holes 3, 2, 1 punched in the A field, holes 3, 2 punched in the B field, and hole 7 punched in the C field. Now 321 is the code—or machine language, or machine call number—for storage counter 7; 32 is the code for storage counter 6; and 7 in the C field is the code (in this case, and generally) for “Add, and read the next line of coding.” So, if we punch out this line of coding and put the tape on the machine, we tell the machine to read the number in counter 7, add it into counter 6, and proceed to the next line of coding and read that.
The holes in each group of 8 holes from left to right are numbered: 8, 7, 6, 5, 4, 3, 2, 1. The code 631, for example, means that holes 6, 3, 1 are punched and that no holes are punched at 8, 7, 5, 4, 2. Since it is more natural, the code is read from left to right, or 631, instead of from right to left in the sequence 136.
The devices in the machine have in-codes, used in the in-field, and out-codes, used in the out-field. For each of the 72 regular storage counters, the in-code and the out-code are the same. The first 8 storage counters have the codes 1, 2, 21, 3, 31, 32, 321, 4, 41; the last 2 storage counters, the 71st and the 72nd, have the codes 7321, 74.
The constant registers—often called constant switches, or just switches—naturally have only out-codes, since numbers can be entered into the constant registers only by setting dial switches by hand. The first 8 constant registers have the out-codes 741, 742, 7421, 743, 7431, 7432, 74321, 75, and the 59th and 60th constant registers have the out-codes 821, 83.
Transferring, Adding, and Clearing
Each storage counter has the property that any number transferred into it is added into it. For example, the instruction
Take the number in switch 741; transfer it into storage register 321
is coded:
741, 321, 7
The 7 in the third column is an instruction to the sequence-tape feed to turn up to the next coding line and read it. If any number is already stored in register 321, the content of 741 will be added to it, and the total will then be stored in 321.
Resetting or clearing a regular storage register is accomplished by a coding that is a departure from the usual scheme of “out” and “in.” The instruction
Clear register 321; read the next coding line
is coded:
321, 321, 7
Similarly, you can clear any other regular storage register if you repeat its code in the out-and in-fields. However, a few of the storage registers in the machine have special reset codes, and these may occur in any of the three fields A, B, C.
As the result of a recent modification of the machine, you can easily double the number in any storage register. For example, the instruction
Double the number in register 321; read the next coding line
is coded:
321, 321, 743
Subtracting
If the number in switch 741 is to be subtracted from the number in storage counter 321, the instruction is changed into:
Take the negative of the number in switch 741; transfer it into storage register 321; read the next line of coding
The coding line becomes:
741, 321, 732
By putting 32 in the C field, we cause the number in switch 741 to be subtracted from whatever number is in register 321.
We have 2 more choices in adding and subtracting. The value of the number without regard to sign—in other words, its absolute value (see Supplement 2)—may be added or subtracted. The instruction
Add the absolute value of
is expressed by a C field code 2, and the instruction
Add the negative of the absolute value of
is expressed by a C field code 1.
Multiplying
When we wish to multiply one number by another and get a product, we have 3 numbers. We tell the machine about each of these numbers on a separate line of coding. Multiplication is signaled by sending a number into the multiplicand counter. The multiplicand counter has an in-code 761. If the multiplicand is in 321, the instruction is:
Take the number in 321; enter it as multiplicand; read the next coding line
The coding is:
321, 761, 7
On the third following coding line, the multiplier is sent into the multiplier counter. If the multiplier is in switch 741, the instruction is:
Take the number in 741; enter it as multiplier; read the next coding line
The coding is:
741, ——, 7
We do not punch anything in the middle field: the machine is “educated” and “knows” that it has started a multiplication and needs a multiplier, and it expects this multiplier in the third coding line. To have no code for the multiplier counter is, of course, a departure from the general rule, but it saves some punching and permits the use of this space for certain other codes, thus saving some operating time.
We need not confuse the 761 in-code for the multiplicand counter with the 761 out-code, which happens to be the out-code of the 25th constant register, because neither can occur in the other’s field. We may, of course, use other registers besides 321 and 741 for supplying the multiplicand and multiplier.
To get the product and put it into any storage counter D, we use two lines of coding one right after the other: