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

Usage

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

   ANSI

Description

   acos returns the arc cosine of x in the range of 0<=acos<=p. The argument
   x must be in the range of -1<=x<=1.

Example 

   #include <math.h>
   #include <stdio.h>
   #include <stdlib.h>


   int main()
   {
       double x, y;
       x = .94;
       y = acos(x);
       printf("The arc cosine of %f is %f\n",x,y);
       return EXIT_SUCCESS;
   }

Return Value

   acos returns the arc cosine of the input value. If the value x is less
   than -1 or greater than 1, acos sets errno to EDOM and returns 0. Error
   handling can be modified through the function matherr.

See Also

   asin, atan, atan2



See Also: asin atan atan2

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