This script calculates the average and root mean square values of some common waveforms.
After selection of a waveform the avg and rms are shown as function of amplitude.
The user can enter amplitude and in case of a pulse the duty-cycle. The numerical values for avg and rms are then calculated.
The information about the waveforms is stored in a nested tuple.
Only the math library is used. The code also runs on a PC using CPython.