treams.special¶
Special (mathematical) functions.
Special mathematical functions used in treams
. Some functions are reexported from
scipy.special
. Most functions are available as Numpy universal functions
(numpy.ufunc
) or as generalized universal functions
(Generalized universal function API).
Available functions¶
Bessel and Hankel functions, with their spherical counterparts, derivatives¶
|
Derivative of the Hankel function of the first kind. |
|
Derivative of the Hankel function of the second kind |
|
Derivative of the Bessel function of the first kind |
|
Derivative of the Bessel function of the second kind |
|
Spherical Hankel function of the first kind |
|
Spherical Hankel function of the second kind |
|
Derivative of the spherical Hankel function of the first kind. |
|
Derivative of the spherical Hankel function of the second kind |
Those functions are just reexported from Scipy. So, one only needs to import this subpackage within treams.
|
Hankel function of the first kind. |
|
Hankel function of the second kind. |
|
Bessel function of the first kind of real order and complex argument. |
|
Bessel function of the second kind of real order and complex argument. |
spherical_jn (n,
z[, derivative]) |
Spherical Bessel function of the first kind or its derivative. |
spherical_yn (n,
z[, derivative]) |
Spherical Bessel function of the second kind or its derivative. |
Those functions just wrap Scipy functions with special optional arguments to be able to analogously access them like their non-spherical counterparts:
|
Derivative of the spherical Bessel function of the first kind. |
|
Derivative of the spherical Bessel function of the second kind. |
Scipy functions with enhanced domain¶
|
Spherical harmonics of real and complex argument |
|
Associated legendre polynomials of real and complex argument |
Integrals for the Ewald summation¶
|
Upper incomplete Gamma function of integer and half-integer degree and real and complex argument |
|
Integral appearing in the accelerated lattice summations |
Wigner d- and Wigner D-matrix elements¶
|
Wigner-d matrix element |
|
Wigner-D matrix element |
Wigner 3j-symbols¶
|
Wigner-3j symbol |
Vector wave functions¶
|
Angular function pi |
|
Angular function tau |
Spherical waves and translation coefficients
|
Vector spherical harmonic X in spherical coordinates |
|
Vector spherical harmonic Y in spherical coordinates |
|
Vector spherical harmonic Z in spherical coordinates |
|
Singular vector spherical wave M |
|
Singular vector spherical wave N |
|
Singular helical vector spherical wave |
|
Regular vector spherical wave M |
|
Regular vector spherical wave N |
|
Regular helical vector spherical wave |
|
Translation coefficient for vector spherical waves with the same parity |
|
Translation coefficient for vector spherical waves with opposite parity |
|
Translation coefficient for vector spherical waves with the same parity |
|
Translation coefficient for vector spherical waves with opposite parity |
Cylindrical waves
|
Singular vector cylindrical wave M |
|
Singular vector cylindrical wave N |
|
Singular helical vector cylindrical wave |
|
Regular vector cylindrical wave M |
|
Regular vector cylindrical wave N |
|
Regular helical vector cylindrical wave |
|
Translation coefficient for vector cylindrical waves from scattered to incident modes |
|
Translation coefficient for vector cylindrical waves of the same kind |
Plane waves
|
Vector plane wave M |
|
Vector plane wave N |
|
Vector plane wave of well-defined helicity |
Coordinate system transformations¶
|
Convert cartesian to cylindrical coordinates |
|
Convert cartesian to spherical coordinates |
|
Convert cylindrical to cartesian coordinates |
|
Convert cylindrical to spherical coordinates |
|
Convert spherical to cartesian coordinates |
|
Convert spherical to cylindrical coordinates |
|
Convert vector in cartesian coordinates to vector in cylindrical coordinates |
|
Convert vector in cartesian coordinates to vector in spherical coordinates |
|
Convert vector in cylindrical coordinates to vector in cartesian coordinates |
|
Convert vector in cylindrical coordinates to vector in spherical coordinates |
|
Convert vector in spherical coordinates to vector in cartesian coordinates |
|
Convert vector in spherical coordinates to vector in cylindrical coordinates |
|
Convert cartesian to polar coordinates |
|
Convert polar to cartesian coordinates |
|
Convert vector in cartesian coordinates to vector in polar coordinates |
|
Convert vector in polar coordinates to vector in cartesian coordinates |
Cython module¶
Cython versions of special functions. |