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++ 3.0r4 - <b>cos</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
cos

Usage

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

   ANSI

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>
   #include <stdlib.h>

   int main()
   {
       double value = 2.5556,result;
       result = cos(value);
       printf("The cosine of %f is %f\n",value,result);
       return EXIT_SUCCESS;
   }

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, acosh, matherr, sin, sinh, tan, tanh




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

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