string_pde, a FORTRAN90 code which sets up and solves the partial differential equations (PDE) describing a vibrating string, creating files that can be displayed by gnuplot().


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


string_pde is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

FD1D_WAVE, a FORTRAN90 code which applies the finite difference method to solve a version of the wave equation in one spatial dimension.

gnuplot_test, FORTRAN90 codes which write data and command files so that gnuplot() can create plots.



  1. George Lindfield, John Penny,
    Numerical Methods Using MATLAB,
    Second Edition,
    Prentice Hall, 1999,
    ISBN: 0-13-012641-1,
    LC: QA297.P45.

Source Code:

Last revised on 31 August 2020.