Skip to main content

UltrasphericalEvalSum

Evaluate the finite sum of Ultraspherical polynomials at point x.

Interface 1

INTERFACE
MODULE PURE FUNCTION UltrasphericalEvalSum(n, lambda, x, coeff) &
& RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
!! order of polynomial
REAL(DFP), INTENT(IN) :: lambda
!! alpha of Ultraspherical polynomial
REAL(DFP), INTENT(IN) :: x
!! point
REAL(DFP), INTENT(IN) :: coeff(0:n)
!! Coefficient of finite sum, size = n+1
REAL(DFP) :: ans
!! Evaluate Ultraspherical polynomial of order n at point x
END FUNCTION UltrasphericalEvalSum
END INTERFACE

Interface 2

INTERFACE
MODULE PURE FUNCTION UltrasphericalEvalSum(n, lambda, x, coeff) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
!! order of polynomial
REAL(DFP), INTENT(IN) :: lambda
!! alpha of Ultraspherical polynomial
REAL(DFP), INTENT(IN) :: x(:)
!! point
REAL(DFP), INTENT(IN) :: coeff(0:n)
!! Coefficient of finite sum, size = n+1
REAL(DFP) :: ans(SIZE(x))
!! Evaluate Ultraspherical polynomial of order n at point x
END FUNCTION UltrasphericalEvalSum
END INTERFACE