LEARNING EXTENSION
Compute rms value of the voltage waveform