Module rgsl::legendre::associated_polynomials[][src]

Expand description

The following functions compute the associated Legendre Polynomials P_l^m(x). Note that this function grows combinatorially with l and can overflow for l larger than about 150. There is no trouble for small m, but overflow occurs when m and l are both large. Rather than allow overflows, these functions refuse to calculate P_l^m(x) and return OvrFlw when they can sense that l and m are too big.

If you want to calculate a spherical harmonic, then do not use these functions. Instead use legendre_sphPlm below, which uses a similar recursion, but with the normalized functions.

Functions

This routine computes the associated Legendre polynomial P_l^m(x) for m >= 0, l >= m, |x| <= 1.

This routine computes the associated Legendre polynomial P_l^m(x) for m >= 0, l >= m, |x| <= 1.

Returns the size of the array needed for these functions, including GSL workspace.

This routine computes the normalized associated Legendre polynomial \sqrt{(2l+1)/(4\pi)} \sqrt{(l-m)!/(l+m)!} P_l^m(x) suitable for use in spherical harmonics. The parameters must satisfy m >= 0, l >= m, |x| <= 1. This routine avoids the overflows that occur for the standard normalization of P_l^m(x).

This routine computes the normalized associated Legendre polynomial \sqrt{(2l+1)/(4\pi)} \sqrt{(l-m)!/(l+m)!} P_l^m(x) suitable for use in spherical harmonics. The parameters must satisfy m >= 0, l >= m, |x| <= 1. This routine avoids the overflows that occur for the standard normalization of P_l^m(x).