Skip to main content

Chebyshev1Eval

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

Interface 1

INTERFACE
MODULE PURE FUNCTION Chebyshev1Eval(n, x) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
!! order of polynomial
REAL(DFP), INTENT(IN) :: x
!! point of evaluation, it should be between -1 and 1
REAL(DFP) :: ans
!! Evaluate Chebyshev1 polynomial of order n at point x
END FUNCTION Chebyshev1Eval
END INTERFACE

Interface 2

INTERFACE
MODULE PURE FUNCTION Chebyshev1Eval(n, x) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
!! order of polynomial
REAL(DFP), INTENT(IN) :: x(:)
!! several points of evaluation
REAL(DFP) :: ans(SIZE(x))
!! Evaluate Chebyshev1 polynomial of order n at points x
END FUNCTION Chebyshev1Eval
END INTERFACE