Logarithm
In mathematics, a logarithm is a function that gives the in the equation bn = x. It is usually written as logb x = n. For example:
Algorithm
To calculate logb(x) if b and x are rational numbers and x ≥ b > 1:
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
If n0 is the largest natural number such that bn0 ≤ x or, alternately,
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
: n_0 = lfloor log_b(x) floor
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
then
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
: log_b(x) = n_0 + rac{1}{log_{x / b^{n_0}}(b)}
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
This algorithm recursively produces the continued fraction
Related Topics:
Algorithm - Recursively - Continued fraction
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
: log_b(x) = n_0 + rac{1}{n_1 + rac{1}{n_2 + rac{1}{n_3 + cdots}}}.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
The logarithms produced are irrational for most inputs.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
To use irrational numbers as inputs, apply the algorithm to successively detailed rational approximations. The limit of the result series should converge to the actual result.
Related Topics:
Irrational number - Series
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
:ln 2 = 2sum_{n = 0}^{infty }rac{(1/5)^{
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
2,n+1}}{ 2,n+1}+2sum_{n = 0}^{infty }rac{(1/7)^{
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
2,n+1}}{ 2,n+1}
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ Table of Content ~
| ► | Introduction |
| ► | Logarithms and exponentials: inverses |
| ► | Using logarithms |
| ► | Uses of logarithms |
| ► | History |
| ► | Algorithm |
| ► | Trivia |
| ► | See also |
| ► | References |
| ► | External links |
~ What's Hot ~
~ Community ~
| ► | History Forum Come and discuss about History, Civilizations, Historical Events and Figures |
| ► | History Web-Ring A community of sites, blogs and forums dedicated to History. Do not hesitate to submit your site. |
and are licensed under the GNU Free Documentation License.
Lexicon - Privacy Policy - Spiritus-Temporis.com ©2005.
