How do you create a damped cosine wave?

You can use the ActorPosition to gradually decrease the wave amplitude.

This is basically the concept, except I have a div by zero problem at the moment:

343271-sinetaper.gif