mie_pi๏
- miepython.vsh.mie_pi(n, theta, deg=False)[source]๏
Computes the angular variation of the electric field arising from the nth electric multipole ๐_n(๐).
The variation is given by associated nth Legendre polynomial Pยน_n(cos(๐))/sin(๐)
Care is taken to avoid division by zero and for this function to work with both scalars and arrays
- Parameters:
n โ Degree of multipole 1=dipole, 2=quadrupole, 3=octopole
theta โ angle in radians
deg โ if True then angle is in degrees
- Returns:
array-like โ Values of dP_n^m(x)/dx.