LEARNING EXTENSION
Compute the rms value for the current waveforms and use
them to determine average power supplied to the resistor