Approximating the Logarithm of Any Base with Continued Fractions

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.
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.

(13 lines omitted)

To compute the approximation of the logarithm , two sequences of numbers and are computed as follows:
,
,
...
.
Then
.
comments
 
Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. Your message and contact information may be shared with the author of any specific Demonstration for which you give feedback, but will not otherwise be published or distributed.
Privacy Policy »

Note: To run this Demonstration you need the free
Mathematica Player
or Mathematica 7+
Download or upgrade to Mathematica Player 7
I already have Mathematica Player or Mathematica 7+