#define PI 3.1415926 double angle=(double)theta/10.0*PI/180.0 double anglecos=cos(angle) double anglesin=sin(angle)