Polynomial waveform approximation