Spectral Methods in MATLAB

siam
Society for Industrial and Applied Mathematics
Copyright 2000 Society for Industrial and Applied Mathematics.
10 9 8 7 6 5 4 3 2
All rights reserved. No part of this book may be reproduced, stored, or transmitted in any manner without the written permission of the publisher. For information, write to the Society for Industrial and Applied Mathematics, 3600 University City Science Center, Philadelphia, PA 19104-2688.
Trademarked names may be used in this book without the inclusion of a trademark symbol. These names are used in an editorial context only; no infringement of trademark is intended.
Library of Congress Cataloging-in-Publication Data
Trefethen, Lloyd N. (Lloyd Nicholas)
Spectral methods in MATLAB/Lloyd N. Trefethen.
p. cm. (Software, environments, tools)
Includes bibliographical references and index.
(pbk.)
1. Differential equations, Partial Numerical solutions Data processing.
2. Spectral theory (Mathematics) 3. MATLAB. I. Title. II. Series.
QA377.T65 2000
515 ?.7222 dc21
00-036559
Download the programs from http://www.comlab.ox.ac.uk/oucl/work/nick.trefethen.
Start up MATLAB.
Run p1, p2, p3, .
Happy computing!
To Anne
Acknowledgments
I must begin by acknowledging two special colleagues who have taught me a great deal about spectral methods over the years. These are Andr Weideman, of the University of Stellenbosch, coauthor of the "MATLAB Differentiation Matrix Suite" [WeRe00], and Bengt Fornberg, of the University of Colorado, author of A Practical Guide to Pseudospectral Methods [For96]. These good friends share my enthusiasm for simplicity and my enjoyment of the occasional detail that refuses to be simplified,...