# Complex calculations before computers

**URL:** <https://boards.straightdope.com/t/complex-calculations-before-computers/559926>\
**Category:** Factual Questions\
**Created:** [November 8, 2010, 5:06pm UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926 "2010-11-08T17:06:08Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![gazpacho](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@gazpacho](https://boards.straightdope.com/u/gazpacho)\
**Post date:** [November 9, 2010, 2:27am UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/41 "2010-11-09T02:27:42Z")

</div>

> [@Chronos](#):
>
> If your calculation will fail due to roundoff error from using a value of pi to 39 decimal places, then your calculation is set up incorrectly, and will fail no matter how many decimal places you have. I’m hard-pressed to think of any application where 8 or 10 digits wouldn’t be enough.
> 
> Oh, there are exceptions, of course, like the infamous “tangent of 10^100” question which stumped Feynman, but you have to contrive those. That would never come up naturally.

It is not a question of breaking. It is a question of accuracy. If you are trying to track the position of something over a path the length of the universe to the accuracy of the width of a proton you need more than 10 digits for all but the most trivial scenarios.

---

<div class="post-metadata">

**Author:** ![johnpost](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@johnpost](https://boards.straightdope.com/u/johnpost)\
**Post date:** [November 9, 2010, 2:32am UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/42 "2010-11-09T02:32:52Z")

</div>

> [@sevenwood](#):
>
> Ah, yes, the memories. When I entered engineering school as a freshman back in '66 the first big decision we had to make was whether to purchase a Decilon or a K&H slide rule. We engineering students proudly attached their cases to our belts and wore them dagger-style all day. And never really understood why the Arts & Sciences students thought of us as geeks.

engineers liked to fly the geek flag.

scientists used circular slide rules that fit in your pocket.

---

<div class="post-metadata">

**Author:** ![Smeghead](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Smeghead](https://boards.straightdope.com/u/Smeghead)\
**Post date:** [November 9, 2010, 3:24am UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/43 "2010-11-09T03:24:40Z")

</div>

Kepler spent decades doing nothing but one complicated calculation after another to come up with his famous laws.

---

<div class="post-metadata">

**Author:** ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)\
**Post date:** [November 9, 2010, 3:42am UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/44 "2010-11-09T03:42:35Z")

</div>

[A related question: How many trig functions are there?](http://www.johndcook.com/blog/2009/09/25/how-many-trig-functions/) Most of you probably know of three — sine, cosine, and tangent — and some of you might say zero, but, historically, the answer has ranged to upwards of a dozen, including such Seussian names as haversine and exsecant.

Why? Tables:

> [@](#):
>
> One of the primary applications of trigonometry historically was navigation, and certain commonly used navigational formulas are stated most simply in terms of these archaic function names. For example, the [law of haversines](http://en.wikipedia.org/wiki/Haversine_formula). Modern readers might ask why not just simplify everything down to sines and cosines. But when you’re calculating by hand using tables, every named function takes appreciable effort to evaluate. If a table simply combines two common operations into one function, it may be worthwhile.

(The ‘zero’ answer is because trigonometric functions are all just complex exponentiation in drag.)

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [November 9, 2010, 3:56am UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/45 "2010-11-09T03:56:40Z")

</div>

My favorite is hacovercosine.

There’s a cool [diagram](http://upload.wikimedia.org/wikipedia/commons/9/9d/Circle-trig6.svg) on Wikipedia that shows a lot of the obsolete ones, like versine and exsecant.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [November 9, 2010, 4:00am UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/46 "2010-11-09T04:00:18Z")

</div>

> [@](#):
>
> Robert Heinlein describes in one of his essays solving a Hohman orbit problem where the ship performed a gravity assist maneuver on a planet. He and his wife each covered a table with butcher paper and solved the problem by hand; this way, they could check each other’s work. It took them three days to solve it, and this work represents one paragraph in Space Cadet. That’s dedication.

Of course, part of the reason it took them so long is that they didn’t really have much experience with such problems, wasn’t sure what methods to use, and probably had to look up some relevant formulae (which in those days meant a trip to the library, not just a click on Google). I could probably do the same calculation in an hour, and someone who actually does orbit calculations professionally might well do it in ten minutes.

---

<div class="post-metadata">

**Author:** ![KarlGauss](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/karlgauss/32/3713_2.png) [@KarlGauss](https://boards.straightdope.com/u/KarlGauss)\
**Post date:** [November 9, 2010, 4:03am UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/47 "2010-11-09T04:03:19Z")

</div>

> [@BrotherCadfael](#):
>
> Truly, Feynman had a dizzying intellect.

I think it was in Gleick’s biography of him ([Genius](http://www.amazon.com/Genius-Life-Science-Richard-Feynman/dp/0679747044/ref=sr_1_1?s=books&ie=UTF8&qid=1289275084&sr=1-1)), that I read how one of the first true computers was received at Los Alamos - in pieces, mind you, literally in a bunch of boxes, with no particular instructions and no particular pattern to what was packed with what. Feynman sat down, thought about it for a while, and proceded to put the damn thing together. And, of course, it worked!

Think about that for a minute.

---

<div class="post-metadata">

**Author:** ![JoelUpchurch](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@JoelUpchurch](https://boards.straightdope.com/u/JoelUpchurch)\
**Post date:** [November 9, 2010, 4:33am UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/48 "2010-11-09T04:33:38Z")

</div>

> [@Thudlow\_Boink](#):
>
> (I vaguely recall reading science fiction stories by the likes of Robert Heinlein where someone piloted a spaceship with the help of a slide rule.)

He had plenty of characters that used slide rules, but I don’t recall any of them trying to calculate a ballistic with one. Even his earliest stories had complex mechanical calculators, but by the late forties they are electronic.

The ballistic computer in _The Rolling Stones_ (1952) was a triplex model that strongly reminds me of the computer used on the Space Shuttle, including being made by IBM.

Heinlein would have been familiar with mechanical fire control systems that would have been in use when he was in the navy in the thirties.

---

<div class="post-metadata">

**Author:** ![standingwave](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@standingwave](https://boards.straightdope.com/u/standingwave)\
**Post date:** [November 9, 2010, 9:29am UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/49 "2010-11-09T09:29:59Z")

</div>

> [@friedo](#):
>
> There’s a cool [diagram](http://upload.wikimedia.org/wikipedia/commons/9/9d/Circle-trig6.svg) on Wikipedia that shows a lot of the obsolete ones, like versine and exsecant.

So _that’s_ why it’s called the tangent function. :smack: Seriously, I just learned it as opposite/adjacent or sin/cos and never gave it a second thought. I should turn in my engineering degree.

---

<div class="post-metadata">

**Author:** ![don\_t\_ask](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@don\_t\_ask](https://boards.straightdope.com/u/don_t_ask)\
**Post date:** [November 9, 2010, 9:51am UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/50 "2010-11-09T09:51:29Z")

</div>

I recall years ago reading a book about the advent of the PC. It started off with older computational devices and worked its way through calculators. The author stated that what really aided each advance in computing was a killer app. The first for the PC was the spreadsheet. It had never occurred to me that the things one does in a spreadsheet used to take place on sheets of paper affixed to walls. You would change something in one place and be instructed to make another change somewhere else on the other side of the room.

---

<div class="post-metadata">

**Author:** ![LSLGuy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lslguy/32/5813_2.png) [@LSLGuy](https://boards.straightdope.com/u/LSLGuy)\
**Post date:** [November 9, 2010, 11:59am UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/51 "2010-11-09T11:59:13Z")

</div>

We’ve already had one xkcd ref upthread, but the OP just demands this one too [xkcd: Los Alamos](http://xkcd.com/809/)

---

<div class="post-metadata">

**Author:** ![Frylock](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Frylock](https://boards.straightdope.com/u/Frylock)\
**Post date:** [November 9, 2010, 12:17pm UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/52 "2010-11-09T12:17:32Z")

</div>

> [@Kevbo](#):
>
> The _precision_ of that 32 bit floating point is only a little over 7 decimal digits. So after about 4 months, when it adds 1 second to say 1.000000 \*10^^7 seconds the answer as 1.000000 \* 10^^7 (The same). The timer has stopped, because it has reached the point that one second is below the available precision. You can add 10 to that number, but you can’t add 1. The timer that was intended to work well beyond the expected lifetime of the universe will fail after ~4 months, and it did exactly that, which is how I got hired to fix it.

What does “precision” mean in this context? Why exactly does adding 1 to that number yield the same number rather than the number plus 1?

---

<div class="post-metadata">

**Author:** ![Capt.Ridley\_s\_Shooting\_Party](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Capt.Ridley\_s\_Shooting\_Party](https://boards.straightdope.com/u/Capt.Ridley_s_Shooting_Party)\
**Post date:** [November 9, 2010, 12:44pm UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/53 "2010-11-09T12:44:05Z")

</div>

If you read Turing’s early papers on effective computability they only really make sense when you remember that computers in the 1930s were generally women with maths and physics degrees.

> [@ZipperJJ](#):
>
> I was reading an article about yet another history of the first computer. Most of the time when I read articles/essays like this, they say that computers gave us the ability to do tedious computations and crunch huge sets of numbers.

Perhaps off-topic, but ENIAC has a pretty torturous claim to the “first computer”. If Turing completeness is the qualifier, then Zuse’s computers were the first. Otherwise, if influence over all following computing hardware is the qualifier (which the author in that article seems to use to disqualify Zuse’s computers) then the Manchester Baby is the first, in that it was the first computer that was actually commercialised, and the direct ancestor of all mainstream computing hardware today, in the Ferranti Mk 1. To describe the ENIAC as the first computer means you strangely promote some aspects of its design to undue prominence (like the fact it was electronic) whilst ignoring the fact it didn’t have the ability to store programs (unlike, again, the Manchester Baby).

---

<div class="post-metadata">

**Author:** ![Le\_Ministre\_de\_l\_au-dela](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/le_ministre_de_l_au-dela/32/12181_2.png) [@Le\_Ministre\_de\_l\_au-dela](https://boards.straightdope.com/u/Le_Ministre_de_l_au-dela)\
**Post date:** [November 9, 2010, 1:25pm UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/54 "2010-11-09T13:25:09Z")

</div>

My father-in-law was a surveyor before calculators. He eventually became a landscape architect and taught at one of the best faculties in Canada. Among other things, he swore that his experience surveying made the mathematics much easier - visualizing the formula as a surveying field allowed him to have a range of expectation, greatly reducing his errors.

He was famous for insisting on ‘no calculators, show your work’ in the first couple of exams. In his day, it was done with a pencil, paper, slide rule and maybe a book of tables.

When he was the surveyor for an archaeological expedition to Spain in '68, he broke down and bought his first electronic calculator. It was huge, expensive and delicate, but it could do square roots!!

He has found the same thing that others have mentioned - errors that are due to having no concept of the scale of the problem, stemming from a blind acceptance of what the calculator says.

I should also mention - in the ‘Horatio Hornblower’ series by C. S. Forster, and also in the Aubery/Maturin series by Patrick O’Brian, much is made of the heroes’ mathematical ability. Hornblower would seem to be naturally gifted, whereas Jack Aubery earned his sense of math through sweat and tears, and through the help of Queenie, his governess, if I remember correctly.

---

<div class="post-metadata">

**Author:** ![Smeghead](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Smeghead](https://boards.straightdope.com/u/Smeghead)\
**Post date:** [November 9, 2010, 1:52pm UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/55 "2010-11-09T13:52:09Z")

</div>

Not Heinlein, but EE “Doc” Smith definitely had a scene in the Lensman series in which a crewmember whipped out his slide rule to plot a course to the next galaxy.

---

<div class="post-metadata">

**Author:** ![unclelem](https://avatars.discourse-cdn.com/v4/letter/u/ac91a4/32.png) [@unclelem](https://boards.straightdope.com/u/unclelem)\
**Post date:** [November 9, 2010, 4:26pm UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/56 "2010-11-09T16:26:30Z")

</div>

> [@JoelUpchurch](#):
>
> He had plenty of characters that used slide rules, but I don’t recall any of them trying to calculate a ballistic with one. Even his earliest stories had complex mechanical calculators, but by the late forties they are electronic.

I’m pretty sure the novel that people are sort of remembering is “Starman Jones”.  
A decent story, but badly dated due to the main plot device involving manual calculations and math tables.

IIRC they used human astrogators to calculate with a triple redundancy, vote out the odd result error catching mechanism. Unfortunately for them, two officers made the same mistake on the jump outward and outvoted the correct answer.

The titular character needed to calculate an inverse for the previously botched jump calculation without any of the original paperwork, and also without their 10-digit log/trig tables which had been destroyed.

---

<div class="post-metadata">

**Author:** ![Lemur866](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lemur866/32/434_2.png) [@Lemur866](https://boards.straightdope.com/u/Lemur866)\
**Post date:** [November 9, 2010, 4:56pm UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/57 "2010-11-09T16:56:15Z")

</div>

> [@gazpacho](#):
>
> It is not a question of breaking. It is a question of accuracy. If you are trying to track the position of something over a path the length of the universe to the accuracy of the width of a proton you need more than 10 digits for all but the most trivial scenarios.

But if we’re trying to track the path of a proton over the length of the universe, we’re going to have a limit in the precision of our instruments. Yes, we can have an arbitrary precision in our value of pi. But we only have so many significant figures in our telescopes and other apparatus. So having more precision in our value of pi gets us nowhere.

So, if someone asks us the circumference of a circle that’s 1 mile in radius, how many digits of pi do you need? Well, how accurate was that 1 mile radius? If you’re only given 1 significant figure–1 mile–then the most accurate you can be is to say that the circumference is 3 miles. If they tell you it was 1.0 miles, then you can say 3.1 miles. If they say 1.00 miles, you can say 3.14 miles.

So how accurate is your measurement of the radius of the known universe? It has at most 1 or 2 significant figures.

And this is the reason more than a couple of digits of pi don’t help. Your calculation is only as good as your worst measurement, and increasing precision on the other measurements doesn’t increase the precision of your calculation.

---

<div class="post-metadata">

**Author:** ![Mk\_VII](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Mk\_VII](https://boards.straightdope.com/u/Mk_VII)\
**Post date:** [November 9, 2010, 5:26pm UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/58 "2010-11-09T17:26:57Z")

</div>

When the _Hunt_-class destroyers began coming out of the yard in 1940 their stability proved to be much less satisfactory than the calculations had predicted. The calculations in those days were long and tedious, and (as normal) a check set had been performed independently with the two answers only being compared at the end. Investigation showed that both sets contained an identical error, and it became clear that one man had cribbed his figures from the other.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [November 9, 2010, 5:35pm UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/59 "2010-11-09T17:35:16Z")

</div>

> [@](#):
>
> What does “precision” mean in this context? Why exactly does adding 1 to that number yield the same number rather than the number plus 1?

Floating point numbers are inherently stored in something resembling scientific notation, with a fixed number of digits. So 1.000000e7 + 1.000000e0 should be something like 1.0000001e7. But the computer doesn’t store that many digits, so it rounds it to 1.000000e7, which, after all, is almost the same thing, right? But it’s the same number as we had before we did the addition.

---

<div class="post-metadata">

**Author:** ![dmatsch](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@dmatsch](https://boards.straightdope.com/u/dmatsch)\
**Post date:** [November 9, 2010, 5:38pm UTC](https://boards.straightdope.com/t/complex-calculations-before-computers/559926/60 "2010-11-09T17:38:28Z")

</div>

Kelly Johnson and teams of hundreds sitting behind desks with slide rules and log tables _and no computers_ created the greatest aircraft known to man, the [YF-12](http://en.wikipedia.org/wiki/Lockheed_YF-12)which went on to become the SR-71, _still_ the fastest aircraft in the sky.

[Previous page](https://boards.straightdope.com/t/complex-calculations-before-computers/559926.md?page=2)

[Next page](https://boards.straightdope.com/t/complex-calculations-before-computers/559926.md?page=4)
