Example:

#include <stdio.h>

#include <math.h>

#define PI 3.141592654

int main () {

double angle;

angle = 10;

double ans;

ans = sin (angle*PI/180);

printf ("Ans = %lf ", ans );

return 0;

}

Or did you need more accuracy or something?

]]>Someone gave me a link to the formulas for sine, cosine and tangent, which was great and they appear to work, but they call a lot of factorials and very large numbers "270^5" :-O

If anyone knows where I can get a copy of the source code for functions for sine, cosine, tangent, arcsine, etc. so I can just copy the definition into my program and call on it when I need it. It would be a MAJOR help!

]]>