Associate Professor Wang Li-Lian


  SPECTRAL METHODS: Algorithms, Analysis and Applications
  Springer Series in Computational Mathematics, Volume 41, Springer, 2011
  by J. Shen, T. Tang and L. Wang

  This book can be oredered at the website of Springer. It consists of 9 chapters
  with about 480 pages. Please click to view Table of Contents.

  We provide below a collection of Matlab Routines on some fundamental spectral
  algorithms presented in this book. By no means, these functions are coded
  optimally, though we have attempted to do so. We have made significant efforts
  to test all algorithms, but it is inevitable that some functions might fail to work
  for some choices of arguments. The users are more than welcome to email us if
  you find any bugs or have any comments.


Erratum for the book

Lecture Notes (Part 1) for Short Course on Spectral Methods

Lecture Notes (Part 2) for Short Course on Spectral Methods

Lecture Notes (Part 3) for Short Course on Spectral Methods

Instructions for the functions

Legendre spectral methods (all files are zipped: Legendre.zip)

  • lepoly.m (evaluate Legendre polynomial and its first-order derivative)
  • lepolym.m (evaluate Legendre polynomials and their first-order derivatives up to degree n)
  • legs.m (compute Legendre-Gauss quadrature nodes and weights)
  • legsndm.m (compute Legendre-Gauss points by the eigen-method)
  • legslb.m (compute Legendre-Gauss-Lobatto quadrature nodes and weights)
  • legslbndm.m (compute Legendre-Gauss-Lobatto points by the eigen-method)
  • legslbwt.m (compute Legendre-Gauss-Lobatto quadrature weights by a very stable weight expression)
  • legsrd.m (compute Legendre-Gauss-Radau quadrature nodes and weights)
  • legsdiff.m (compute first-order Legendre-Gauss differentiation matrix)
  • legslbdiff.m (compute first-order Legendre-Gauss-Lobatto differentiation matrix)
  • legsrddiff.m (compute first-order Legendre-Gauss-Radau differentiation matrix)
  • ledisctran.m (perform discrete Legendre transform)
  • lefreqdiff.m (perform spectral differentiation in the frequency space)

Chebyshev spectral methods (all files are zipped: Chebyshev.zip)

  • chebdiff.m (compute first-order Chebyshev-Gauss-Lobatto differentiation matrix)
  • chebfft.m (perform Chebyshev spectral differentiation via FFT)

Jacobi spectral methods (all files are zipped: Jacobi.zip)

  • japoly.m (compute Jacobi polynomial and its first-order derivative)
  • japolym.m (compute Jacobi polynomials and its first-order derivatives up to degree n)
  • japolyja1.m (compute normalized Jacobi polynomial and its first-order derivative)
  • gebauerpoly.m (compute Gegenbauer polynomial and its first-order derivative)
  • jags.m (compute Jacobi-Gauss quadrature nodes and weights; updated on June 26, 2012)
  • jagslb.m (compute Jacobi-Gauss-Lobatto quadrature nodes and weights updated on June 26, 2012)
  • jagsrd.m (compute Jacobi-Gauss-Radau quadrature nodes and weights updated on June 26, 2012)
  • jagsdiff.m (compute first-order Jacobi-Gauss differentiation matrix)
  • jagslbdiff.m (compute first-order Jacobi-Gauss-Lobatto differentiation matrix)
  • jagsrddiff.m (compute first-order Jacobi-Gauss-Radau differentiation matrix)
  • jadisctran.m (perform discrete Jacobi transform)

Laguerre spectral methods (all files are zipped: Laguerre.zip uploaded on December 23, 2011)

Hermite spectral methods (all files are zipped: Hermite.zip uploaded on December 23, 2011)

   Many more to come ......


Useful links

Best viewed with Microsoft IE 6.0 and above. Last updated on November 2014.