Wave equation

The Concurrent wave Equation

It is described in Chapter 5 of Fox et al. (1988), Solving Problems on Concurrent Processors, Vol 1. The implementation needs to calculate the amplitude of points along a vibrating string for a specified number of time intervals. The equation to solve is:

newval[i] = (2.0 * values[i]) - oldval[i] + (sqtau * (values[i-1] - (2.0 * values[i]) + values[i+1]));

"i" indicates the point on the line. The values array holds the current amplitudes. Note that the new amplitude for the point will depend on the current values at neighboring points.

The decomposition can be viewed as: