Learning Cycles on Harmonic Motion and Waves