View Single Post
Old 10-15-2003, 10:14 AM   #2 (permalink)
hrdwareguy
"Officer, I was in fear for my life"
 
hrdwareguy's Avatar
 
Location: Oklahoma City
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)
__________________
Gun Control is hitting what you aim at

Aim for the TFP, Donate Today
hrdwareguy is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34