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.
The library is installed as follows:
- Download the package nate-master.zip.
- Expand the zip file if it was not expanded automatically.
- Start MATLAB.
- Use the
pathtool
dialog to add the new package folder to the MATLAB path:>> pathtool
- Verify that the library routines are available as follows:
>> nate Numerical Analysis: Theory and Experiments
- Set the Command Window preferences in MATLAB to
long
numeric format andcompact
numeric display.
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');