d'Alembert's solution and energy quantities

Animation of d'Alembert's solution (superposition of counter-propagating waves). Representation of energy quantities on a string.

Source code containing interactive animation: nb