.CalcLegendre {wmm}R Documentation

Compute Associated Legendre Functions Given Sequence of (degree, order) Indices

Description

Procedure that computes the associated Legendre function, Pn,m(μ)P_{n,m}(\mu), given a sequence of (degree, order) indices and function argument μ\mu. This is computed via a closed-form equation.

Usage

.CalcLegendre(mu)

Arguments

mu

Function argument to Pn,m(μ)P_{n,m}(\mu)

Details

The underlying equation used is:

P(x,n,m)=(1)m2n(1x2)(m/2)sum(form<=k<=n:k!/(km)!x(km)choose(n,k)choose((n+k1)/2,n))P(x, n, m)=(-1)^m * 2^n * (1-x^2)^(m/2) * sum(for m <= k <= n: k!/(k-m)! * x^(k-m) * choose(n, k) * choose((n+k-1)/2, n))


[Package wmm version 1.1.1 Index]