Calculate ln(x) using 8-digit calculator

tarjetaroja2t

tarjetaroja2t

Answered question

2022-09-16

Calculate ln(x) using 8-digit calculator
I have a bit of a unique problem. Well, maybe not a problem because I'm really just curious about it, but...
I have a simple 8 digit calculator. It has +, -, x, /, and a constant operation function. It has no usable memory slot.
I need (lit. would like to know how) to calculate ln(x) on this calculator. Any series I have found lose a lot of precision since whatever is outside the 8 digit range is truncated without rounding. I have used Padé approximants with trig functions, and a continued fraction for exp(), but none of these two methods are adequate for ln(x), either because there is no way around the truncation error or it requires writing down many intermediate values, or it requires memorizing and punching in many constants.
Does anyone know any good way to calculate ln(x) (or any other base, since memorizing one constant is OK) to as many digits as possible as easily as possible on this calculator (bonus points to methods where the value on the screen is immediately, meaning you don't need to write it down)?
For that matter, if you happen to know some good ways to calculate other special functions, I am interested in that as well.
Thanks!

Answer & Explanation

Rayna Aguilar

Rayna Aguilar

Beginner2022-09-17Added 14 answers

I had a four-function calculator in the 1970s, and used to extract logrithms quite often from it. I used decimal logrithms.
The method was to use a crib-sheet (a page in a notebook), on which the antilogs of 0.1 to 0.9, then 0.01 to 0.09 etc, were written. One then divides by the largest number on the list, until one got a number like 1.0000 2135 or something. The 2135 bit was then divided by ln(10), to get the remaining digits.
The number could then be divided by log(e) or whatever, to get the desired value.
To calculate antilogs, the same sheet is used, but you multiply the expression up eg 2 = 10 0.3 10 0.001 . The difference was pre-multiplied by 2.30... and 1 added to it. The whole process takes about four to six divisions to do, and this means you should be able to pull seven-digit logrithms from your calculator.
Topniveauh2

Topniveauh2

Beginner2022-09-18Added 2 answers

First of all, if you want you can work with base-10 logarithms and then convert it to natural log by a simple multiplication with a pre-computed constant:
ln x = ln 10 log 10 x
where ln 10 2.303
So... shift your number to the range [0.1,1] which tells you the whole part of the logarithm:
log 10 103.42 = 3 + log 10 0.10342
log 10 0.0043 = 2 + log 10 0.43
The rest you can do back in the natural base. Better than a Taylor series is a Pade approximant. For instance, you could use
ln ( 1 + x ) x ( 6 + x ) 6 + 4 x
You could find a Pade approximant for the base 10, if you don't like to convert all the time. I suggested base-10 reduction because it is visual - you could also divide/multiply repeatedly by e

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?