cos - C++ Reference - cplusplus.com - The C++ Resources Network
1 2 3 4 5 6 7 8 9 10 11 12 13 14 /* cos example */ #include /* printf */ #include /* cos */ #define PI 3.14159265 int main () { double param, result; param = 60.0; result = cos ( param * PI / 180.0 ); printf ("The cosine of %f degrees is %f ......