next up previous
Next: About this document ... Up: assign4 Previous: assign4

Assignment 4 Fourier Series; Approximation of Functions

To construct the trigonometric polynomial of order M of the form

\begin{displaymath}
T_M(x)=\frac{A_0}{2}+\sum_{j=1}^{M}[A_jcos(jx)+B_jsin(jx)]
\end{displaymath}

based on the N equally spaced values $x_k=-\pi +2\pi k/N$,for $k=1,2,\ldots,N$. The construction is possible provided that $2M+1\leq N$. You are given the http://siber.cankaya.edu.tr/NumericalComputations/mfiles/chapter4/tpcoeff.mprogram that constructs vectors A and B that contain the coefficients $A_j$ and $B_j$, respectively, of the equation above of order M.

Cem Ozdogan 2006-12-19