yasfpy.functions.spherical_functions_trigon#

Spherical special functions (trigonometric form).

Provides spherical Bessel/Hankel-related building blocks and derived quantities used by field computations.

Functions#

spherical_functions_trigon(lmax, theta[, st])

Compute spherical functions using trigonometric functions.

Module Contents#

yasfpy.functions.spherical_functions_trigon.spherical_functions_trigon(lmax, theta, st=None)#

Compute spherical functions using trigonometric functions.

Parameters:
  • lmax (int) – The maximum degree of the spherical harmonics.

  • theta (numpy.ndarray or float) – The polar angle(s) in radians.

  • st (numpy.ndarray or float, optional) – The sine of the polar angle(s). If not provided, it will be computed from theta.

Returns:

The associated Legendre functions. taulm (numpy.ndarray): The derivative of the associated Legendre functions.

Return type:

pilm (numpy.ndarray)