Skip to content

Latest commit

 

History

History
75 lines (38 loc) · 1.31 KB

plegendre.pod

File metadata and controls

75 lines (38 loc) · 1.31 KB

PLegendre

PLegendre -

Compute all the (unnormalized) Legendre polynomials.

SYNOPSIS

SUBROUTINE PLegendre (

P, LMAX, Z )

    REAL*8

    P(LMAX+1), Z

    INTEGER

    LMAX

DESCRIPTION

PLegendre will calculate all of the (unnormalized) Legendre polynomials up to degree LMAX for a given argument. These are calculated using a standard three-term recursion formula. The integral of the Legendre polynomials over the interval [-1, 1] is 2/(2L+1).

ARGUMENTS

P

(output) REAL*8, DIMENSION (LMAX+1)

An array of (unnormalized) Legendre polynomials up to degree LMAX. Degree L corresponds to array index L+1.

LMAX

(input) INTEGER

The maximum degree of the Legendre polynomials to be computed.

Z

(input) REAL*8

The argument of the Legendre polynomial.

SEE ALSO

plbar(1), plbar_d1(1), plmbar(1), plmbar_d1(1), plon(1), plon_d1(1), plmon(1), plmon_d1(1), plschmidt(1), plschmidt_d1(1), plmschmidt(1), plmschmidt_d1(1), plegendre_d1(1), plegendrea(1), plegendrea_d1(1)

http://shtools.ipgp.fr/

COPYRIGHT AND LICENSE

Copyright 2012 by Mark Wieczorek <wieczor@ipgp.fr>.

This is free software; you can distribute and modify it under the terms of the revised BSD license.