MATH 497/597 Fall 2002
Final homework due December 19, 2002
Retrieve the matlab functions for this assignment from
http://ucs.orst.edu/~weidemaj/differ.html .
Hand in your Matlab code in addition to the requested
graphs and tables, and please
condense it onto as few pieces of paper as possible.
- 1.
- For the function
calculate its
derivative on
at the Chebyshev points
when N=8,16,32 using
- (a)
- polydif.m (differentiation matrices for arbitrary sets
of points)
- (b)
- chebdif.m (differentiation matrices on at the Chebyshev points)
- (c)
- chebdifft.m (derivative approximation at Chebyshev points
using Fast Fourier Transform)
Provide a table of values of
,
where u'(x) is the exact derivative and
is the
computed derivative. Do this for each N and each method
and present your results in a table of the form
| |
 |
| N |
polydif.m |
chebydif.m |
chebdifft.m |
| 8 |
|
|
|
| 16 |
|
|
|
| 32 |
|
|
|
Determine which method gives the most accurate representation of
the derivative.
2.
For the function
calculate u' and
u'' on
at equally spaced points when
N=32,64 using
- (a)
- fourdif.m (differentiation matrices)
- (b)
- fourdifft.m (derivative approximation using FFT)
Provide a table of
and
for each method and
each N, i.e.
| |
 |
 |
| N |
fourdif.m |
fourdifft.m |
fourdif.m |
fourdifft.m |
| 32 |
|
|
|
|
| 64 |
|
|
|
|