- PLegendre -
-
Compute all the (unnormalized) Legendre polynomials.
- SUBROUTINE PLegendre (
-
P, LMAX, Z )
- REAL*8
-
P(LMAX+1), Z
- INTEGER
-
LMAX
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).
- 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.
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)
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.