**fd1d_wave_test**,
a MATLAB code which
calls fd1d_wave(), which
applies the finite difference method to solve
a version of the wave equation in one spatial dimension.

The computer code and data files described and made available on this web page are distributed under the MIT license

fd1d_wave, a MATLAB code which applies the finite difference method (FDM) to solve the time-dependent wave equation utt = c * uxx in one spatial dimension.

- fd1d_wave_test.m, calls all the tests.
- fd1d_wave_test.sh, runs all the tests.
- fd1d_wave_test.txt, the output file.

- fd1d_wave_test01.m, uses a sort of shark fin as the initial condition.
- fd1d_wave_test02.m, uses a sine curve as the initial condition.
- fd1d_test01_step06.png, a plot of step 6 for test #1.
- test01_plot.txt, the data.
- fd1d_test02_step13.png, a plot of step 13 for test #2.
- test02_plot.txt, the data.