y = H * sin [(t*pi)/(2*A)]

for 0 <= t < A

y = H

for a <= t < (A + B)

y = H * cos [(t – A – B)*pi/(2*C)]

for (A+B) <= t < (A + B + 2C)

y = –H

for (A+B+2C) <= t < (A + 2B + 2C)

y = –H * cos [(t – A –2B –2C)*pi/(2*A)]

for (A+2B+2C) <= t <= 2*(A + B + C)
