Hi, Mel

You also can identify wave those wave forms by deriving them ( dU/dT ...) during the positive and ascending part

: the squarewave derived = 0
: the triangle wave derived = constant <> 0
: the sine wave derived = ...cosine > always changing value, but <> 0

just an idea ... for simple waveforms !!!

Alain