AFLegendre2

pylayers.antprop.spharm.AFLegendre2(L, M, x)[source]

calculate Pmm1l and Pmp1l

Lint

max order (theta) (also called l or level )

Mint

max degree (phi)

xnp.array

function argument

Pmm1lndarray (Nx , L , M )

\(\bar{P}_{l}^{(m-1)}(x)\)

Pmp1lndarray (Nx , L , M )

\(\bar{P}_{l}^{(m+1)}(x)\)

This function returns :
\[ \begin{align}\begin{aligned}\bar{P}_{l}^{(m-1)}(x)\\\bar{P}_{l}^{(m+1)}(x)\end{aligned}\end{align} \]

Where

\[P_l^{(m)}(x)= \sqrt{ \frac{2}{2 l+1} \frac{(l+m)!}{(l-m)!} } \bar{P}_{l}^{(m)}(x)\]
>>> Pmm1l,Pmp1l = AFLegendre2(5,4,np.array([0,1]))

L has to be greater or equal than M

VW