ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <math_sphbes.h>
Public Member Functions | |
Sphbes () | |
~Sphbes () | |
Static Public Member Functions | |
static void | Spherical_Bessel (const int &msh, const double *r, const double &q, const int &l, double *jl) |
spherical bessel jl(qr) | |
static void | dSpherical_Bessel_dx (const int &msh, const double *r, const double &q, const int &l, double *jl) |
derivative of spherical bessel djl(qr)/d(qr) | |
static void | Spherical_Bessel (const int &msh, const double *r, const double &q, const int &l, double *sj, double *sjp) |
spherical bessel | |
static void | Spherical_Bessel_Roots (const int &num, const int &l, const double &epsilon, double *eigenvalue, const double &rcut) |
return num eigenvalues of spherical bessel function | |
static double | sphbesj (const int l, const double x) |
spherical Bessel function of the first kind | |
static double | dsphbesj (const int l, const double x) |
derivative of spherical Bessel function | |
static void | sphbesj (const int n, const double *const r, const double q, const int l, double *const jl) |
computes the values of l-th order spherical Bessel function at q*r[ir] | |
static void | dsphbesj (const int n, const double *const r, const double q, const int l, double *const djl) |
computes the derivative of l-th order spherical Bessel function at q*r[ir] | |
static void | sphbes_zeros (const int l, const int n, double *const zeros, bool return_all=false) |
Zeros of spherical Bessel functions. | |
Static Private Member Functions | |
static double | Spherical_Bessel_7 (const int n, const double &x) |
static void | BESSJY (double x, double xnu, double *rj, double *ry, double *rjp, double *ryp) |
static void | BESCHB (double x, double *gam1, double *gam2, double *gampl, double *gammi) |
static double | CHEBEV (double a, double b, double c[], int m, double x) |
static int | IMAX (int a, int b) |
static double | _sphbesj_ascending_recurrence (int l, double x) |
static double | _sphbesj_series (int l, double x) |
static double | illinois (std::function< double(double)> func, double x0, double x1, const double tol=1e-12, const int max_iter=50) |
Sphbes::Sphbes | ( | ) |
Sphbes::~Sphbes | ( | ) |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
derivative of spherical Bessel function
[in] | l | order |
[in] | x | argument |
|
static |
computes the derivative of l-th order spherical Bessel function at q*r[ir]
[in] | n | number of r grid points |
[in] | r | r grid |
[in] | q | wave vector |
[in] | l | order of the spherical Bessel function |
[out] | djl | results |
|
static |
derivative of spherical bessel djl(qr)/d(qr)
msh | [in] number of grid points |
r | [in] radial grid |
q | [in] k_radial |
l | [in] angular momentum |
jl | [out] jl spherical bessel function |
|
staticprivate |
|
staticprivate |
|
static |
Zeros of spherical Bessel functions.
This function computes the first n positive zeros of the l-th order spherical Bessel function of the first kind.
[in] | l | (maximum) order of the spherical Bessel function |
[in] | n | number of zeros to be computed (for each j_l if return_all is true) |
[out] | zeros | on exit, contains the positive zeros. |
[in] | return_all | if true, return all zeros from j_0 to j_l such that zeros[l*n+i] is the i-th zero of j_l. If false, return only the first n zeros of j_l. |
|
static |
spherical Bessel function of the first kind
This function computes j_l(x) by series expansion for x < l and by ascending recurrence for x >= l.
[in] | l | order |
[in] | x | argument |
|
static |
computes the values of l-th order spherical Bessel function at q*r[ir]
[in] | n | number of r grid points |
[in] | r | r grid |
[in] | q | wave vector |
[in] | l | order of the spherical Bessel function |
[out] | jl | results |
|
static |
spherical bessel jl(qr)
msh | [in] number of grid points |
r | [in] radial grid |
q | [in] k_radial |
l | [in] angular momentum |
jl | [out] jl spherical bessel function |
|
static |
spherical bessel
msh | [in] number of grid points |
r | [in] radial grid |
q | [in] k_radial |
l | [in] angular momentum |
jl | [out] jl spherical bessel function |
sjp | [out] sjp[i] is assigned to be 1.0. i < msh. |
|
staticprivate |
|
static |
return num eigenvalues of spherical bessel function
num | [in] the number of eigenvalues |
l | [in] angular number |
epsilon | [in] the accuracy |
eigenvalue | [out] the calculated eigenvalues |
rcut | [in] the cutoff the radial function |