Jump to content

Global Natural Logarithm Formula


sandokhan

Recommended Posts

The common way to calculate logarithm involves tables of logarithm, the mantissa and the characteristic. What is needed is a global, explicit formula for the logarithm.

LN V = 2n x (V1/2n+1 - 1/V1/2n+1)

This is the first explicit global formula for the natural logarithm, which can be used immediately to find LN V without resorting to logarithm tables, or calculators which feature the logarithm key: all we need is a calculator which has the four basic operations and the square root key. It links algebraic functions with elementary and higher transcendental functions.

For a first approximation,

LN V = 2n x (V1/2n - 1)

First results appear for n = 8 to 12, all the remaining digits for n = 19 and higher...

Example: x = 100,000        LN x = 11.5129255

with n = 20 the first approximation is LN x = 11.512445 (e11.512445 = 100,001.958)

 

Proof

I first derive the global cosine formula, then the global hyperbolic cosine formula, then one can easily find the global natural logarithm formula as well.

UnitCircleW_InscribedRgtTri.gif

 

The hypothenuse is labeled as c (which unites points A and C), side a is located on the x axis (which unites points A and B), and we also have side b. Angle θ is located between sides c and a (cos θ = a/c).

Point D will be the intersection of the circle with the positive x axis.

We first calculate the value of segment CD, in terms of a, b and c: (2c2 - 2ac)1/2

We then succesively bisect the chord CD, and each hypothenuse thus obtained (if we divide CD in half the midpoint will be E, and the intersection of the segment AE with the circle will be labeled as F; then we calculate this new hypothenuse CF in terms of the values obtained earlier, and so on, aiming to get as close to the value of s [arc length of CD] as possible], into smaller and smaller equal segments, calculating each succesive value in terms of a, b and c, in order to obtain a very close approximation of s (the arc length between points C and D); since s = rθ, where r = c = 1, by acquiring an exceptional figure for s, we correspondingly then get the value of θ.

Letting c = 1, we finally obtain:


COS θ =  1/2 x (({ [( (2 - θ2/2N)2 - 2)2...]2 - 2}2 - 2))    (n/2 + 1 evaluations)

COS-1 θ =  2n x {2 - ((2 + {2 + [2 + (2 + 2θ)1/2]1/2}1/2...))}1/2   (n + 1 evaluations)



The cosine formula is a GLOBAL formula; by contrast the Maclaurin cosine series is a local formula:

maclaurin_series_for_cosx_4.gif

 

My global cosine formula is the SUM of the Maclaurin cosine expansion.


We know that the Maclaurin hyperbolic cosine expansion is:

cosh x = 1 + x2/2! + x4/4! + ...

Therefore, by just changing the sign in the global cosine formula, we obtain immediately the GLOBAL hyperbolic cosine formula:

COSH V =  1/2 x (([(({[(2 + V2/2n)2 - 2]2} - 2))2...-2]2 - 2))   (n/2 + 1 evalutions)

This is the global hyperbolic cosine formula which is the sum of the corresponding local Maclaurin power series expansion.


We then immediately obtain the GLOBAL natural logarithm formula:

LN V =  2n x ((-2 + {2 + [2 + (2 + 1/V + V)1/2]1/2...}1/2))1/2   (n+1 evaluations)


By summing the nested continued square root function, we finally obtain:


LN V = 2n x (V1/2n+1 - 1/V1/2n+1)

We also can get the corresponding arctangent formula:

ARCTAN V =  2n x ((2- {2+ [2+ (2+ 2{1/(1+ V2)}1/2)1/2]...1/2}))1/2 (n+1 parentheses to be evaluated)


ERROR ANALYSIS

Here is the Maclaurin expansion for ex:

f98fd1cf18b61436b3adf73e1be3e6fc.png

Let us obtain a remainder form for the Maclaurin expansion for ex (Lagrange remainder):

Rn(x) = f(n+1)(c)[xn+1]/(n+1)! , where c is between 0 and x

f(n+1)(c) = ec


An approximation is said to be accurate to n decimal places if the magnitude of the error is less than 0.5 x 10-n.

e1 to four decimal place accuracy:

Rn = ec/(n+1)!

since c<1, then ec < e

since e<3, then Rn < 3/(n+1)!

then, for n=8 we will obtain four decimal place accuracy.


Local formulas are difficult to use because of their very slow convergence.


By contrast, my formula is a GLOBAL formula, which rapidly converges to the result, even for large x.


Cosh v = (ev + e-v)/2 =~ 1/2ev = 1/2 x (({[( ( (2 + v2/2n)2) -2)2] -2)2 ...-2}2 -2))       (n/2 +1 evaluations)

We can turn this formula into an exact formula for ev by simply substituting y for ev, and then solve the quadratic equation for y.

One might ask, could you not use Taylor expansions to obtain cosh 10 (as an example)? No, because you would need some other value to start with, cosh 9.5 or cosh 9.8 or cosh 10.3, to apply Taylor series.

With my global formula, no such approximations are needed, we can start directly with the value v = 10.

My formula also has a built-in remainder approximation estimation: the term v2/2n.

That is, we can estimate the accuracy from the very start: this is the power of a global formula.

The higher the value of n, the better the approximation that we will obtain.


Example:

COSH 10 = 11013.233

102/220 = 0.00009536

Using the global hyperbolic cosine formula with n = 20, we get: 11012.762

 

Second Proof

One of the readers of my messages has sent this proof for my global logarithm formula which however uses mathematical analysis:

lBkMFhK.jpg?1

Link to comment
Share on other sites

1 hour ago, sandokhan said:

For a first approximation,

LN V = 2n x (V1/2n - 1)

First results appear for n = 8 to 12, all the remaining digits for n = 19 and higher...

Example: x = 100,000        LN x = 11.5129255

with n = 20 the first approximation is LN x = 11.512445 (e11.512445 = 100,001.958)

If I put n = 10 and use your V = 100000 , as well as a calculator, I get


[math]\ln 100000 = {2^{10}}\left\{ {{{100000}^{\frac{1}{{{2^{10}}}}}} - 1} \right\} = 11.578[/math]

So the formula is not bad even for n = 10.

 

However how am I supposed to evaluate


[math]{{{100000}^{\frac{1}{{{2^{10}}}}}}}[/math]


?

I used the yx button, but how is that better than using the lnx button directly?

 

Edit I see the formula also works for decimal fractions eg

n = 10, V = 0.01 yields -4.5945

ln(0.01) yields -4.6

Edited by studiot
Link to comment
Share on other sites

We use only the square root function to evaluate V1/2n

In fact, using a continued fraction algorithm to calculate the sequence of square roots, we'd only need a very simple calculator which features the four basic arithmetic operations. What this formula also does is to show that the logarithm is actually a sequence of nested square roots.

Edited by sandokhan
Link to comment
Share on other sites

Each of the global formulas is the sum of the corresponding Maclaurin expansion. We now have a global, explicit formula for the natural logarithm: it makes any and all logarithm tables obsolete. 

What you are referring to is the case where you have a hand held calculator (or an online calculator) and you need to find the value of lnx or e^x. Even in that case, this direct and explicit formula can replace the algorithms currently used to calculate this function, which are quite complex. A continued (nested) square root function provides a much faster algorithm to calculate the needed logarithm expression. I can calculate any logarithm using only a hand held calculator which features the four basic arithmetic operations, using this global formula. 

Link to comment
Share on other sites

4 hours ago, sandokhan said:

We use only the square root function to evaluate V1/2n

In fact, using a continued fraction algorithm to calculate the sequence of square roots, we'd only need a very simple calculator which features the four basic arithmetic operations. What this formula also does is to show that the logarithm is actually a sequence of nested square roots.

Thank you for the answer.

I hadn't appreciated you were actually taking repeated square roots.

What method woud you use for taking the 10 to 20 square roots of a 10 digit number on a four function calculator?

Link to comment
Share on other sites

21 minutes ago, sandokhan said:

I would use either the Newtonian iteration formula (if tools from mathematical analysis are permitted) or a continued fraction algorithm.

So the proceedure has many more steps than meets the eye at first glance.

Link to comment
Share on other sites

I always try to obtain formulas without the use of mathematical analysis. In fact, the humble tools of basic arithmetic are needed to resolve the Riemann hypothesis, a fact discovered recently:

It is my belief that RH is a genuinely arithmetic question that likely will not succumb to methods of analysis. Number theorists are on the right track to an eventual proof of RH, but we are still lacking many of the tools. 

J. Brian Conrey

And there are much more difficult problems than the basic RH: what to these zeros of the zeta function actually represent? Is there a hidden pattern to them, unobserved to this day?

My formula simply tells us that the logarithm function is actually a sequence of continued square roots, and that it can be used to replace the currently used algorithms (for finding the logarithm) in hand held calculators/online calculators. We no longer need the tedious logarithm tables, a direct global formula where we can see at a glance everything we need to know. The global arctangent formula also might have applications as it is a continued function and provides a faster to compute the arctan function than using the extended series from calculus. I obtained these formulas without using mathematical analysis, just simple computational procedures.

Link to comment
Share on other sites

1 hour ago, sandokhan said:

I always try to obtain formulas without the use of mathematical analysis. In fact, the humble tools of basic arithmetic are needed to resolve the Riemann hypothesis, a fact discovered recently:

It is my belief that RH is a genuinely arithmetic question that likely will not succumb to methods of analysis. Number theorists are on the right track to an eventual proof of RH, but we are still lacking many of the tools. 

J. Brian Conrey

And there are much more difficult problems than the basic RH: what to these zeros of the zeta function actually represent? Is there a hidden pattern to them, unobserved to this day?

My formula simply tells us that the logarithm function is actually a sequence of continued square roots, and that it can be used to replace the currently used algorithms (for finding the logarithm) in hand held calculators/online calculators. We no longer need the tedious logarithm tables, a direct global formula where we can see at a glance everything we need to know. The global arctangent formula also might have applications as it is a continued function and provides a faster to compute the arctan function than using the extended series from calculus. I obtained these formulas without using mathematical analysis, just simple computational procedures.

 

I am not suprised that an arithmetic connection can be made since powers and roots are linked arithmetically already both between different powers and the base of those powers.

 

Link to comment
Share on other sites

If you ask most people how they would calculate square roots (without a calculator ) they would say they use logarithms...

 

Is this new method of finding ln(x) quicker or less demanding of memory than the usual methods (I think they used chebyshev polynomials last time I looked into it)?

If not, it's interesting, but not really useful.

Link to comment
Share on other sites

At the present time, a global/explicit formula for the logarithm or the summing of the Maclaurin expansions for the cos/arccos/arctan/cosh functions are not envisioned to be possible. Yet, these formulas prove that it is possible. As for the computational power, I think it would be best to have this formula compared to the usual algorithms (which are very complex) utilized in hand held/online calculators.

The Riemann hypothesis and the factorization of large semiprimes require methods, new ideas, from arithmetic in order to be finally solved.

Let us briefly discuss the factorization of large semiprimes.

For a 200 digit number (semiprime), the required computational time (1990) for the methods then used in integer factorization will take 4 x 1015 years.

For a 300 digit number, we would need 5 x 1021 years

For a 500 digit number, the figure would rise to 4.2 x 1032 years.

b1, a1 and c1 are the three sides of a right triangle

b12 + a12 = c12

b1 = d1 x d2 (divisors of b1)

a1 = (d12 - d22)/2

c1 = (d12 +d22/2

If b1 is prime, then b12 + a22 = c22 (where c2 = (b12 +1)/2 )

Modern geometry/trigonometry tells us that Pythagoras' theorem is the only known relationship relating the three sides of a right triangle, in a single equation.

But there is another equation relating the three sides of right triangle:

b12sc + a12sc =~ [(b1 + a1 + c1)/2]2sc + ...

sc = either 0.63662... (the sacred cubit) or 0.618034... (phi), this matter needs to be resolved.

Since a1 + c1 = d12, with a reasonable estimate for a1, we can obtain a very good approximation for d1.

The Fibonacci numbers are actually sacred cubit numbers.

1,618034 = 4sc2 (1sc = 0.636009827, in this case)

Then Fn = 1/(8sc2 -1) x 22n x sc2n

The first formula proves to be enough to completely solve the large integer factorization involving a semiprime having 10 or less digits. The right side of the equation is an asymptotic expansion, I was able to obtain the main term; of course, adding more terms of this expansion (a very difficult endeavor), would mean we can factorize semiprimes which have more than 10 digits, the accuracy depending on the number of terms in the expansion.

Of course, to attempt to solve the large semiprime factorization problem beyond the case where bhas more than 10-20 digits, would mean we need a more precise algorithm

List of Fibonacci numbers (Fn) (sacred cubit sequences):

http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/fibtable.html


b1 has less than 10 digits

How to obtain a reasonable estimate for a1


b1 = 8141 x 131071 = 1073602561

1073602561 = 286572 + 252378911 = 28657 x 46368 - 255165215  

F23 = 28657 

F24 = 46368 

If b1<a1, then the a1 term will be of the form F242 - ..., F24 x F25 - ..., F25 x F26 - ..., or F252 - ...

if b1>a1, then a1 will equal F23 x F24 - ..., F222 - ... , that is, only 4-6 possible choices.


In order to get a very good estimate for d1, we will use the first remainder (and a few subsequent remainders if needed, more explanation below) obtained from the b1 for each of the above choices .

For the a1 =  F25 x F26 - ... choice, using a10 = 255165215, and substituting in the first formula, we get: 

d1 = 132578.957, an excellent approximation.

Actually, a1 = 8556257280 = 750252 + 2927506655 = 75025 x 121393 - 551252545


b1 = 65537 x 131071 = 8590000127 = 750252 + 2961249502 = 75025 x 121393 - 517509698

F25 = 75025

Using the same reasoning and the same formula, we get a first estimate for d1, d1 = 130095.707

The sacred cubit hidden pattern of the natural number system can be used to obtain as much information as possible out of the b1 semiprime.

b1 = 821 x 941 = 772561

772561 = 610 x 987 + 170491 = 9872 - 201608

170491 = 3772 + 28362 = 377 x 610 - 59479

F15 = 610
F16 = 987

We use each and every remainder obtained by dividing b1 by Fibonacci numbers, in a similar sequence: each subsequent remainder expressed as in the classic division formula (a = qd + r, where q and d are Fibonacci numbers, while r is the remainder to be used in the next division process)

201608 = 377 x 610 - 28362 = 3772 + 59479

F14 = 377

28362 = 144 x 233 - 5190 = 1442 + 7899

59479 = 2332 + 5190 = 233 x 377 - 28362

7899 = 892 - 22 = 89 x 55 + 3004

5190 = 89 x 55 + 295 = 892 - 2731


3004 = 552 - 21 = 55 x 34 + 1134

2731 = 552 - 294 = 55 x 34 + 861


1134 = 342 - 22 = 34 x 21 + 420

861 = 34 x 21 + 147 = 342 - 295

420 = 212 - 20 = 21 x 13 + 147

294 = 21 x 13 + 21 = 212 - 147 ; 147 + 21 = 168

147 = 21 x 8 - 21 = 13 x 8 + 43

43 = 8 x 5 + 3 = 82 - 21

21 = 5 x 3 + 6 = 52 - 4


Interestingly, we can immediately obtain a first approximation for d1, d1 = 918; by summing the remainders of b1 in their corresponding order, for a 3 digit d1 divisor. Several such sums can be obtained (where d1 can be assumed to have 3, 4, 5 digits) and one of them will actually represent a nice estimate of d1.


The crucial observation is that we can actually get the remainders of the a1 term either by noticing that 6 and 4 (remainders obtained by dividing 21 by F5 and F4) can be used to initiate the a1sequence of remainders starting from the bottom up, or by using a very interesting shortcut involving b1sc, where this can be applied.

Actually, a1 = 105720 = 3772 - 36409 = 377 x 233 + 17879

Using the same scheme as above for the a1 term (same division by Fibonacci numbers algorithm as was utilized for the b1 term) we finally get:

40 = 82 - 24 = 8 x 3 + 16

16 = 52 - 9 = 32 + 7

9 = 3 x 5 - 6 = 2 x 3 - 3


65 = 82 + 1 = 8 x 13 - 39

39 = 8 x 5 - 1 = 52 + 14

14 = 3 x 5 -1 = 2 x 5 + 4


Knowing that 6 and 4 are the remainders of a1, we can see that from the possible choices we eventually get (11, 19, 9, and 14) only 9 and 14 will make any sense, given the fact that the remainders at each stage of the calculation have to be expressed as in the classic division formula (a = qd + r, where q and d are Fibonacci numbers, while r is the remainder).


One of the remainders of a1 will be 2857.


3004 - 2857 = 147



772561sc = 5530


5530 - 5063 = 2 x 233

5530 - 2857 = 89 x 30

(5063, another a1 remainder)

That is, there is a certain symmetry and relationship between b1sc and some of the a1 remainders.



Another example.

b1 = 1000009

For 1000009 = 3413 x 293, we get a first estimate of 3486, and by summing the remainders of b1(576230 + 204130 + 62001 + 25840 + 5104 + 2817 + 947 ...) we get an estimate of 3400, which is amazing, because we only use the remainders from b1 and very simple approximations.


For 1000009, b1sc = 6515.72

9368 - 6515.72 = 610 x 4.66 = 987 x 2.88  (4.66 = 2 x 2.33 , and 2.88 = 2 x 1.44, both 233 and 144 are Fibonacci numbers)

9368 is one of the a1 remainders

Another a1 remainder is 3448

6515.72 - 3448 =~ 552 = 233 x 13



Thus, the factorization of semiprimes is related to the sacred cubit, and I believe the above algorithm is a start in studying further this new approach to solving this problem, based on the power of the sacred cubit.

For moderately large b1 such as:

231 - 1 = 2147483647

261 - 1 = 2.3059 x 1018

b1 = (231 - 1) x (261 - 1) = 4.951760152 x 1027

a computer which can handle the full/entire number of digits could be used to verify the algorithm proposed above, and to see if the same relationship exists between the sequence of remainders obtained for both b1 and a1.

In fact, with an a1 trial function 4 x 1035, we get an estimate for d1 = 2.353 x 1018.

Of course for the exact answer, we would need to verify the correctness of the above algorithm, involving the sequence of remainders obtained upon division by the corresponding Fibonacci numbers.
 

Edited by sandokhan
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.