A Method for Calculating Total Harmonic Distortion of Digital Sinusoidal Waveform | IEEE Conference Publication | IEEE Xplore