Why not simply use the sin() function? Is it too slow? Is the fact that the argument is in radians a problem?