equations in ipo curve editor

Is there a way to enter a mathematical equation into the ipo editor so it’ll plot is and use it as animation?

You could probably do that by adding a driver to the I.P.O, and using python. If you bring up the properties window in the I.P.O window (n key) you will see the add driver button, you can add an object in there so one object can be driven by another, or, if you click on the python icon, you can add your equation (in python) there.

not sure i understand…
i see a line in the properties window, and i click the little python icon to the left of the text line. say i want to plot y=2x. it gives me an error. I have no experiance with python, just a little VB. can you clarify?