
Matlab code for examples | |
| Example 3.1 | In this example we use a right hand side function which allows us to derive an exact solution of the wave equation. The matlab function plot the solution for three times, given as input to the function. The script also use this function. |
| Example 3.2 | This matlab code deals with Fourier expansion of the simples function, f(x) = 1, and make plot of this function for some partial sums. This function is also used as the right hand side in the wave equation, and the solutions are plotted for some time states. The script also use this function. |
| Example 3.4 | The N'th partial sum of the Fourier sine-series for f(x) = x is computed, for some values of N, and the plotted, see figure 3.5 in the book. |
| Example 3.5 | Do the plotting of example 3.5 ( see figure 3.6 ). This function is used in the script. |
| Example 3.6 | This is a script which plot the analytical solution of a heat equation. |