# Logarithmic Tables

**URL:** <https://boards.straightdope.com/t/logarithmic-tables/793079>\
**Category:** Factual Questions\
**Created:** [August 8, 2017, 10:44am UTC](https://boards.straightdope.com/t/logarithmic-tables/793079 "2017-08-08T10:44:31Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [August 9, 2017, 10:07am UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/21 "2017-08-09T10:07:16Z")

</div>

log[sub]10[/sub]2 = 0.30103 is palindromic, so engineers always (used to) know that one to 5 digits, even if they didn’t have the entire 5-digit table memorized like Gauss.

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [August 9, 2017, 10:27am UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/22 "2017-08-09T10:27:33Z")

</div>

> [@septimus](#):
>
> Here is some real C code to compute (_but with no error-checking_) logarithm base _e_.
> 
> ```auto
> 
> /*
> * This code is loosely based on Freeware;
> * x_log() is similar to log() but does no error-checking.
> * x_frexp() accomplishes the built-in function frexp()
> * but is much slower. It is included to make this
> * wholly self-contained.
> * No copyright is claimed by Septimus G. Stevens VII.
> * Use of this code for satiric purposes is encouraged.
> */
>  
> 
> ```
> 
> …

What is satirical about it? Because of the lack of error checking? I have not proofread your code or the output precision, but it seems like a decent way to compute a logarithm; I like your change of variables to knock out half the terms in the familiar power series and the use of a Padé approximant for good precision.

---

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [August 9, 2017, 11:39am UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/23 "2017-08-09T11:39:47Z")

</div>

It’s not my code; I just pulled it off the 'Net and did some rearranging to make it appear more straightforward to my eye. It does seem to produce the same answers as gcc’s log().

---

<div class="post-metadata">

**Author:** ![CalMeacham](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/calmeacham/32/35_2.png) [@CalMeacham](https://boards.straightdope.com/u/CalMeacham)\
**Post date:** [August 9, 2017, 11:46am UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/24 "2017-08-09T11:46:22Z")

</div>

> [@DPRK](#):
>
> Supposedly Gauss had his logarithms memorized, to 5 digits. Memorizing your table of logarithms would be tremendously useful, and start to come naturally through practice, to anyone who did manual computations all day, eg in the 18th and 19th centuries; today it is not a practical skill.

Someone – I think it was either Asimov or Martin Gardner – had a column about memorizing a few choice logarithms, using letters-for-numbers substitutions and recalling the words, which allowed you to make a few calculations.

---

<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:** [August 9, 2017, 1:28pm UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/25 "2017-08-09T13:28:17Z")

</div>

Oh, sure, there are tricks you can use for quick-and-dirty base 10 logs, but there are also corresponding tricks for base e, or any other base.

Oh, and **Wendell** , the different Wikipedia formatting was because **Monty** was linking to the mobile version of Wikipedia, designed to look good on small phone screens. That’s what the m means in [en.m.wikipedia.org](http://en.m.wikipedia.org) (the “en”, meanwhile, is for English).

---

<div class="post-metadata">

**Author:** ![Wendell\_Wagner](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@Wendell\_Wagner](https://boards.straightdope.com/u/Wendell_Wagner)\
**Post date:** [August 9, 2017, 1:30pm UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/26 "2017-08-09T13:30:58Z")

</div>

Thank you, Chronos.

---

<div class="post-metadata">

**Author:** ![Monty](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/monty/32/47_2.png) [@Monty](https://boards.straightdope.com/u/Monty)\
**Post date:** [August 9, 2017, 1:44pm UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/27 "2017-08-09T13:44:57Z")

</div>

**Wendell Wagner** : I didn’t say that was the plot of the novel, just that it was an important plot point. The Trisolarian army was put to use as human (Trisolarian) computers.

---

<div class="post-metadata">

**Author:** ![Pleonast](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pleonast/32/1183_2.png) [@Pleonast](https://boards.straightdope.com/u/Pleonast)\
**Post date:** [August 9, 2017, 2:41pm UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/28 "2017-08-09T14:41:21Z")

</div>

> [@Francis\_Vaughan](#):
>
> Well yes, 3db and 6db are welded into ones mind. I have a feeling many don’t even realise that these are approximations, and get confused when they see the extra decimal places.
> 
> There was a time when I had a few more of these approximations at my mental fingertips. Not so much anymore.

The commonly known rules of thumb for dB are  
0dB = 1  
3dB = 2  
5dB = 3  
6dB = 4  
7dB = 5  
8dB = 6  
9dB = 8  
10dB = 10  
It’s a log table with one significant digit. Once you have it memorized, you can quickly do in your head the product of a lot of factors, or roots, or powers.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [August 9, 2017, 3:43pm UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/29 "2017-08-09T15:43:05Z")

</div>

> [@abashed](#):
>
> How are logarithmic tables calculated?

Is it mere pedantry to point out that the question that people have actually been answering is “How _were_ logarithmic tables calculated?”

When was the last time anyone calculated a table of logarithms? (Of course, electronic calculators and computers do still calculate logarithms, but is there any longer a reason to produce a new _table_ of logarithms?)

When was the last time anyone calculated a table of logarithms without having a computer (the electronic sort) do the calculations?

(See **Hari Seldon** ’s post for the _first_ time anyone calculated a table of logarithms.)

---

<div class="post-metadata">

**Author:** ![Pleonast](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pleonast/32/1183_2.png) [@Pleonast](https://boards.straightdope.com/u/Pleonast)\
**Post date:** [August 9, 2017, 5:13pm UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/30 "2017-08-09T17:13:53Z")

</div>

> [@Thudlow\_Boink](#):
>
> See **Hari Seldon** ’s post for the _first_ time anyone calculated a table of logarithms.

I know **Hari** is old, but I think people were calculating tables of logarithm before that post.

😉

---

<div class="post-metadata">

**Author:** ![Timz](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@Timz](https://boards.straightdope.com/u/Timz)\
**Post date:** [August 11, 2025, 4:44pm UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/31 "2025-08-11T16:44:11Z")

</div>

In 1878 John Couch Adams published the best formulas for base-e logarithms of small integers, using the polynomials for ln(1 + x) and ln(1 - x):

a = ln (10/9) = -ln (1 - 1/10)

b = ln (25/24) = -ln (1 - 4/100)

c = ln (81/80) = ln (1 + 1/80)

d = ln (50/49) = -ln (1 - 2/100)

e = ln (126/125) = ln (1 + 8/1000)

ln 2 = 7a - 2b + 3c

ln 3 = 11a - 3b + 5c

ln 5 = 16a - 4b + 7c

ln 7 = 19a - 4b + 8c + e = (1/2)(39a - 10b + 7c - d)

Once you have the terms for **a** you can do ln 11 as well, with the terms for **b** you can do ln 13, and with the **d** terms you can do ln 17.

---

<div class="post-metadata">

**Author:** ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)\
**Post date:** [August 11, 2025, 9:46pm UTC](https://boards.straightdope.com/t/logarithmic-tables/793079/32 "2025-08-11T21:46:18Z")

</div>

Don’t be silly; I actually described the method to Napier.

[Previous page](https://boards.straightdope.com/t/logarithmic-tables/793079.md?page=1)
