waveforms and runge-kutta