f(theta)=costheta