Well, I won't write the equation for you, but:
First, make sure to include the math.h header file, it will contain all the functions you need.
The functions are:
double cos(double x)
double sin(double x)
double asin(double x) /*arcsine of x*/
double pow(doublex, doubley) where x is raised to the y power.
double sqrt(double x)
|