nate

Numerical Analysis: Theory and Experiments
Brian Sutton

Numerical Analysis: Theory and Experiments is a textbook on numerical analysis. Numerical methods are designed and implemented, and then they are analyzed through a combination of mathematical theory and numerical experimentation. Problem areas include interpolation, integration, linear systems, zero finding, and differential equations. Chebyshev methods are used early and often.

This package is a library of MATLAB routines that accompany the book.

Installation

The library is installed as follows:

  1. Download the package nate-master.zip.
  2. Expand the zip file if it was not expanded automatically.
  3. Start MATLAB.
  4. Use the pathtool dialog to add the new package folder to the MATLAB path:
    >> pathtool
    
  5. Verify that the library routines are available as follows:
    >> nate
    Numerical Analysis: Theory and Experiments
    
  6. Set the Command Window preferences in MATLAB to long numeric format and compact numeric display.

Demonstration

The following code computes and plots the arctan function.

>> g = @(x) 1/(1+x^2); a = 0; b = 10;
>> fa = 0;
>> qs = samplecheb(g,[a b],60);
>> ps = antiderivcheb(fa,qs,[a b]);
>> p = interpcheb(ps,[a b]);
>> newfig;
>> plotfun(p,[a b],'displayname','p');
>> ylim([0 pi/2]);
>> legend('location','southeast');

arctan