associated_legendre_p_array Subroutine

public subroutine associated_legendre_p_array(lmax, x, p)

this function calculates all associated Legendre polynomials for every l,m < lmax and return them in an array adapted from the numerical recipes implementation

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: lmax
real(kind=long), intent(in) :: x
real(kind=long), intent(out), dimension((lmax + 1)*(lmax + 2)/2) :: p