Lentz's algorithm
In mathematics, Lentz's algorithm is an algorithm to evaluate continued fractions and compute tables of spherical Bessel functions.[1]
History
The idea was introduced in 1973 by William J. Lentz[1] and was simplified by him in 1982.[2] Lentz suggested that calculating ratios of spherical Bessel functions of complex arguments can be difficult. He developed a new continued fraction technique for calculating them. This method was an improvement compared to other methods because it eliminated errors on certain terms or provided zero as a result. The original algorithm assumes that the denominators occurring during execution remain non-zero throughout. Improvements to overcome this limitation include an altered recurrence relation[3] suggested by Jaaskelainen and Ruuskanen in 1981 or a simple shift of the denominator by a very small number as suggested by Thompson and Barnett in 1986.[4]
Initial work
This theory was initially motivated by Lentz's other research when he calculated ratios of Bessel function necessary for Mie scattering. He demonstrated that the algorithm uses a technique involving the evaluation continued fractions that starts from the beginning and not at the tail. In addition, continued fraction representations for both ratios of Bessel functions and spherical Bessel functions of consecutive order can be computed with Lentz's algorithm.[5] The algorithm suggested that it is possible to terminate the evaluation of continued fractions when is relatively small.[6]
Algorithm
Lentz's algorithm is based on the Wallis-Euler relations. If
etc., or using the big-K notation, if
is the th convergent to then
where and are given by the Wallis-Euler recurrence relations
Lenz's method defines
so that the th convergent is
and uses the recurrence relations
When the product approaches unity with increasing , it is hoped that has converged to .[7]
Applications
Lentz's algorithm was used widely in the late twentieth century. It was suggested that it doesn't have any rigorous analysis of error propagation. However, a few empirical tests suggest that it's almost as good as the other methods. As an example, it was applied to evaluate exponential integral functions. This application was then called modified Lentz algorithm.[8] It's also stated that the Lentz algorithm is not applicable for every calculation, and convergence can be quite rapid for some continued fractions and vice versa for others.[9]
References
- Lentz, W. J. (1973-09-01). "A Method of Computing Spherical Bessel Functions of Complex Argument with Tables". Fort Belvoir, VA.
{{cite journal}}
: Cite journal requires|journal=
(help) - J., Lentz, W. (August 1982). A Simplification of Lentz's Algorithm. Defense Technical Information Center. OCLC 227549426.
- Jaaskelainen, T.; Ruuskanen, J. (1981-10-01). "Note on Lentz's algorithm". Applied Optics. 20 (19): 3289. doi:10.1364/ao.20.003289. ISSN 0003-6935.
- Thompson, I.J.; Barnett, A.R. (1986). "Coulomb and Bessel functions of complex arguments and order". Journal of Computational Physics. 64 (2): 490–509. doi:10.1016/0021-9991(86)90046-x. ISSN 0021-9991.
- Lentz, William J. (1976-03-01). "Generating Bessel functions in Mie scattering calculations using continued fractions". Applied Optics. 15 (3): 668. doi:10.1364/ao.15.000668. ISSN 0003-6935.
- Masmoudi, Atef; Bouhlel, Med Salim; Puech, William (March 2012). "Image encryption using chaotic standard map and engle continued fractions map". 2012 6th International Conference on Sciences of Electronics, Technologies of Information and Telecommunications (SETIT). IEEE. doi:10.1109/setit.2012.6481959.
- Press, W.H.; Teukolsky, S.A.; Vetterling, W.T.; Flannery, B. P. (2007). Numerical Recipes: The Art of Scientific Computing (3rd ed.). Cambridge University Press. pp. 207–208.
- Press, William H.; Teukolsky, Saul A. (1988). "Evaluating Continued Fractions and Computing Exponential Integrals". Computers in Physics. 2 (5): 88. doi:10.1063/1.4822777. ISSN 0894-1866.
- Wand, Matt P.; Ormerod, John T. (2012-09-18). "Continued fraction enhancement of Bayesian computing". Stat. 1 (1): 31–41. doi:10.1002/sta4.4. ISSN 2049-1573.