## File: sbessel.f90

package info (click to toggle)
elkcode 5.4.24-2
 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122  ! Copyright (C) 2002-2006 J. K. Dewhurst, S. Sharma and C. Ambrosch-Draxl. ! This file is distributed under the terms of the GNU Lesser General Public ! License. See the file COPYING for license details. !BOP ! !ROUTINE: sbessel ! !INTERFACE: subroutine sbessel(lmax,x,jl) ! !INPUT/OUTPUT PARAMETERS: ! lmax : maximum order of Bessel function (in,integer) ! x : real argument (in,real) ! jl : array of returned values (out,real(0:lmax)) ! !DESCRIPTION: ! Computes the spherical Bessel functions of the first kind, $j_l(x)$, for ! argument $x$ and $l=0,1,\ldots,l_{\rm max}$. The recursion relation ! $$j_{l+1}(x)=\frac{2l+1}{x}j_l(x)-j_{l-1}(x)$$ ! is used either downwards for \$x