Driving Servo Sinusoidally

hmm....

Well, I want the rotation to be sinusoidal. Similar to the sweep example given with the Arduino but I want to accurately define the position/velocity of the rotation by varying the signal sent to the servo.

Basically I want to make a rigid panel rotate back and forth (think of a fish fin swimming, it oscillates back and forth to propel the fish forward), and want the servo to provide this motion. I want the motion of this oscillation to be accurately defined by mathematical functions to mimic things like sine, sawtooth, and square waves.

That help?