1D Wave Equation

Run the Simulation



Solver Options

Use RK4:
Use Backwards Euler:
Speedup factor

Choose your own adventure

(write a Javascript equation using x)

I still need to write a more thorough explanation of this...

Basically this is an interactive demo of the 1D Wave equation. Try grabbing the string while the simulation is running and moving it.

This simulation is basically a bunch of masses connected via springs. There are a few different solver options that can be run. For example, RK4 is the 4th order Runge-Kutta method.

Note that some of the solvers lose energy and so that'll cause the wave to dissipate.