Skip to main content

GetUltrasphericalRecurrenceCoeff

Recurrence coefficients are for monic and nonmonic Ultraspherical polynomials.

Interface 1

Monic polynomials:

INTERFACE
MODULE PURE SUBROUTINE GetUltrasphericalRecurrenceCoeff(n, &
& lambda, alphaCoeff, betaCoeff)
INTEGER(I4B), INTENT(IN) :: n
!! order of Ultraspherical polynomial, it should be greater than 1
REAL(DFP), INTENT(IN) :: lambda
!! lambda should be greater than -0.5
!! lambda should not be zero
REAL(DFP), INTENT(OUT) :: alphaCoeff(0:n - 1)
REAL(DFP), INTENT(OUT) :: betaCoeff(0:n - 1)
END SUBROUTINE GetUltrasphericalRecurrenceCoeff
END INTERFACE

Interface 2

INTERFACE
MODULE PURE SUBROUTINE GetUltrasphericalRecurrenceCoeff2(n, lambda, &
& A, B, C)
INTEGER(I4B), INTENT(IN) :: n
!! order of jacobi polynomial, it should be greater than 1
REAL(DFP), INTENT(IN) :: lambda
!! lambda should be greater than -0.5
!! lambda should not be 0.0
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 GetUltrasphericalRecurrenceCoeff2
END INTERFACE