Approximating the Logarithm of Any Base with Continued Fractions

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

Continued fractions provide a very effective toolset for approximating functions. Usually the continued fraction expansion of a function approximates the function better than its Taylor or Fourier series. This Demonstration shows the high quality of a continued fraction expansion to approximate the logarithm to an arbitrary real base greater than 1. It uses the Shanks method and is very efficient due to its adaptability for high-speed numerical computer code.

[more]

The logarithm base must be larger than 1, and the number for which the log is computed must be larger than the logarithm base, so must hold.

To make this Demonstration easier to use, the sliders only increment in multiples of 1/10, but Shanks' method is not limited to rationals.

[less]

Contributed by: Andreas Lauschke (March 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details

To compute the approximation of the logarithm , two sequences of numbers and are computed as follows:

,

,

...

.

Then

.



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send