Synchronized Pipes

Pipes can be scripted to produce a traveling wave, P(x,t).  Find the function that matches the top wave.

Lower graph