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.