this function calculates all associated Legendre polynomials for every l,m < lmax and return them in an array adapted from the numerical recipes implementation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | lmax | |||
real(kind=long), | intent(in) | :: | x | |||
real(kind=long), | intent(out), | dimension((lmax + 1)*(lmax + 2)/2) | :: | p |