Skip to main content

Chebyshev1DMatrix

Interface

INTERFACE
MODULE PURE FUNCTION Chebyshev1DMatrix(n, x, quadType) &
& RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
!! order of Chebyshev1 polynomial
REAL(DFP), INTENT(IN) :: x(0:n)
!! quadrature points
INTEGER(I4B), INTENT(IN) :: quadType
!! Gauss and GaussLobatto
REAL(DFP) :: ans(0:n, 0:n)
!! D matrix
END FUNCTION Chebyshev1DMatrix
END INTERFACE

Example