HW1, EECS 207A. UCI Fall
2004
by Nasser Abbasi
Problem
Solution
This below show how to
do this. From definition of fourier coefficients, we calculate the coefficients
for up to some fixed n. Then plot f[x] and the approximated f[x] and compare
the two functions on the same plot. I
also show Fouries approximation for 2 other functions, the sawtooth and the
square function.
a[n] and
b[n] Fourier coefficients for n up to
10
Run output below for a square function
Run output below for a
f[x_]:=Which[-Pi£x<0,x,0£x<Pi,x]; (*sawtooth*)