Setting mathematicl equations to define IPO curve?

How can i set a particular mathematical equation for my IPO curve. I want to use simple harmonic motion equation or a sine curve for an object that will vibrate about a particular point. Is there a way to do this without scripting. If scripting is necessary how can i code it, as i have no coding knowledge.

I guess this two links might help: