Skip to main content

UltrasphericalEval

Evaluate Ultraspherical polynomials of order n at single or several points.

Interface 1

INTERFACE
MODULE PURE FUNCTION UltrasphericalEval(n, lambda, x) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
!! order of polynomial
REAL(DFP), INTENT(IN) :: lambda
!! lambda should be greater than -0.5
REAL(DFP), INTENT(IN) :: x
REAL(DFP) :: ans
!! Evaluate Ultraspherical polynomial of order n at point x
END FUNCTION UltrasphericalEval
END INTERFACE

Evaluate Ultraspherical polynomial of order n at single points.

  • N, the order of polynomial to compute.
  • lambda is the polynomial parameter.
  • x: the point at which the polynomials are to be evaluated.

Interface 2

INTERFACE
MODULE PURE FUNCTION UltrasphericalEval(n, lambda, x) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
!! order of polynomial
REAL(DFP), INTENT(IN) :: lambda
!! lambda should be greater than -0.5
REAL(DFP), INTENT(IN) :: x(:)
REAL(DFP) :: ans(SIZE(x))
!! Evaluate Ultraspherical polynomial of order n at point x
END FUNCTION UltrasphericalEval
END INTERFACE
  • N is order of polynomial to compute.
  • lambda is the polynomial parameter.
  • x: the point at which the polynomials are to be evaluated.
  • ans, the values of the Ultraspherical polynomials at the several points.