 # Calculate ln(x) using 8-digit calculator tarjetaroja2t 2022-09-16 Answered
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!
You can still ask an expert for help

• Live experts 24/7
• Questions are typically answered in as fast as 30 minutes
• Personalized clear answers

Solve your problem for the price of one coffee

• Math expert for every subject
• Pay only if we can solve it Rayna Aguilar
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}\ast {10}^{0.001}\dots$. 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.
###### Not exactly what you’re looking for? Topniveauh2
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:
$\mathrm{ln}x=\mathrm{ln}10{\mathrm{log}}_{10}x$
where $\mathrm{ln}10\approx 2.303$
So... shift your number to the range [0.1,1] which tells you the whole part of the logarithm:
${\mathrm{log}}_{10}103.42=3+{\mathrm{log}}_{10}0.10342$
${\mathrm{log}}_{10}0.0043=-2+{\mathrm{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
$\mathrm{ln}\left(1+x\right)\approx \frac{x\left(6+x\right)}{6+4x}$
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$