model.dimnet_basis_util#

Jn(r, n)[source]#

Numerical spherical bessel functions of order n.

Jn_zeros(n, k)[source]#

Compute the first k zeros of the spherical bessel functions up to order n (excluded).

spherical_bessel_formulas(n)[source]#

Computes the sympy formulas for the spherical bessel functions up to order n (excluded).

bessel_basis(n, k)[source]#

Compute the sympy formulas for the normalized and rescaled spherical bessel functions up to order n (excluded) and maximum frequency k (excluded).

sph_harm_prefactor(l, m)[source]#

Computes the constant pre-factor for the spherical harmonic of degree l and order m.

Parameters:
  • l (int) – \(l>=0\)

  • m (int) – \(-l<=m<=l\)

associated_legendre_polynomials(l, zero_m_only=True)[source]#

Computes sympy formulas of the associated legendre polynomials up to order l (excluded).

real_sph_harm(l, zero_m_only=True, spherical_coordinates=True)[source]#

Computes formula strings of the the real part of the spherical harmonics up to order l (excluded).

Variables are either cartesian coordinates x,y,z on the unit sphere or spherical coordinates phi and theta.