1.1.3 - Approximating Fourier's Solution
|
|
a is the list of coefficients. The length of a determines the number of terms in the series.
1/5*e^(-9/2*pi*w)*cos(9/2*pi*x) - 1/4*e^(-7/2*pi*w)*cos(7/2*pi*x) + 1/3*e^(-5/2*pi*w)*cos(5/2*pi*x) - 1/2*e^(-3/2*pi*w)*cos(3/2*pi*x) + e^(-1/2*pi*w)*cos(1/2*pi*x) 1/5*e^(-9/2*pi*w)*cos(9/2*pi*x) - 1/4*e^(-7/2*pi*w)*cos(7/2*pi*x) + 1/3*e^(-5/2*pi*w)*cos(5/2*pi*x) - 1/2*e^(-3/2*pi*w)*cos(3/2*pi*x) + e^(-1/2*pi*w)*cos(1/2*pi*x) |
The first command produces a 3-dimensional plot of z(x,w), the second produces the cross-section parallel to the w-axis at x=0, and the third produces the cross-section above the x-axis.
|
|
This function is the first n terms of Fourier's approximation to the constant function 1.
|
|
Plot Fourier's approximation with 6 terms.
|
|
This function is the first n terms approximation of the solution to the heat equation with the boundary function as the constant function 1.
|
|
Plot the 6-term solution to the heat equation.
|
|