Skip to main content

GetLegendreRecurrenceCoeff

Recurrence coefficients are for monic and nonmonic Legendre polynomials.

Interface 1

Monic polynomials

INTERFACE
MODULE PURE SUBROUTINE GetLegendreRecurrenceCoeff(n, alphaCoeff, betaCoeff)
INTEGER(I4B), INTENT(IN) :: n
!! order of Legendre polynomial, it should be greater than 1
REAL(DFP), INTENT(OUT) :: alphaCoeff(0:n - 1)
REAL(DFP), INTENT(OUT) :: betaCoeff(0:n - 1)
END SUBROUTINE GetLegendreRecurrenceCoeff
END INTERFACE

GetLegendreRecurrenceCoeff2

INTERFACE
MODULE PURE SUBROUTINE GetLegendreRecurrenceCoeff2(n, A, B, C)
INTEGER(I4B), INTENT(IN) :: n
!! order of Legendre polynomial, it should be greater than 1
REAL(DFP), INTENT(OUT) :: A(0:n - 1)
!! size is n
REAL(DFP), INTENT(OUT) :: B(0:n - 1)
!! this coefficient is zero
REAL(DFP), INTENT(OUT) :: C(0:n - 1)
!! size is n
END SUBROUTINE GetLegendreRecurrenceCoeff2
END INTERFACE