ampsci
High-precision calculations for one- and two-valence atomic systems
Loading...
Searching...
No Matches
SphericalBessel Namespace Reference

Wrappers for returning Spherical Bessel functions. More...

Classes

class  JL_table
 Spherical Bessel Lookup table; in the form j_L(qr) = J[L][q][r]. More...
 

Functions

template<typename T >
JL (const int L, const T x)
 Spherical Bessel function. For x<0.1 and K<=7, uses expansion accurate to delta~1e-15, eps~1e-3.
 
template<typename T >
exactGSL_JL (int L, T x)
 
template<typename T >
std::vector< T > fillBesselVec (const int l, const std::vector< T > &xvec)
 Creates a vector of Jl(r) for given r.
 
template<typename T >
std::vector< T > fillBesselVec_kr (const int l, const double k, const std::vector< T > &rvec)
 
template<typename T >
void fillBesselVec_kr (int l, double k, const std::vector< T > &r, std::vector< T > *jl)
 

Detailed Description

Wrappers for returning Spherical Bessel functions.

Has an "exact" version, and a faster approx version (good to ~ 1.e-9)

Function Documentation

◆ JL()

template<typename T >
T SphericalBessel::JL ( const int  L,
const T  x 
)

Spherical Bessel function. For x<0.1 and K<=7, uses expansion accurate to delta~1e-15, eps~1e-3.

◆ fillBesselVec()

template<typename T >
std::vector< T > SphericalBessel::fillBesselVec ( const int  l,
const std::vector< T > &  xvec 
)

Creates a vector of Jl(r) for given r.