Skip to main content

JacobiEval

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

Interface 1

INTERFACE
MODULE PURE FUNCTION JacobiEval(n, alpha, beta, x) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
REAL(DFP), INTENT(IN) :: alpha
REAL(DFP), INTENT(IN) :: beta
REAL(DFP), INTENT(IN) :: x
REAL(DFP) :: ans
!! Evaluate Jacobi polynomial of order n at point x
END FUNCTION JacobiEval
END INTERFACE

Evaluate Jacobi polynomial of order n at single points.

  • N, the order of polynomial to compute.
  • alpha, beta are parameters
  • x: the point at which the polynomials are to be evaluated.

Interface 2

INTERFACE
MODULE PURE FUNCTION JacobiEval(n, alpha, beta, x) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
REAL(DFP), INTENT(IN) :: alpha
REAL(DFP), INTENT(IN) :: beta
REAL(DFP), INTENT(IN) :: x(:)
REAL(DFP) :: ans(SIZE(x))
!! Evaluate Jacobi polynomial of order n at point x
END FUNCTION JacobiEval
END INTERFACE
  • N is order of polynomial to compute.
  • alpha, beta are parameters
  • x: the point at which the polynomials are to be evaluated.
  • ans, the values of the Jacobi polynomials at the several points.