Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - cos http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   cos

   Usage
   #include <math.h>
   double cos(double x);

   Description
   The function cos calculates the cosine of the floating point  argument
   x where x is in radians.

   Example
   #include <math.h>
   #include <stdio.h>
   main()
   {
   double value = 2.5556,result;
        result = cos(value);
        printf("The cosine of %f is %f\n",value,result);
   }

   Return Value
   cos  returns the cosine of x. Zero is returned on error and  errno  is
   set. Error handling can be modified with matherr.


See Also: acos asin atan atan2 cosh matherr sin sinh tan tanh

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson