cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> extern float acospif (float x); extern double acospi (double x); extern long double acospil (long double x); extern __float80 acospiw (__float80 x); extern __float128 acospiq (__float128 x); extern long_long_double acospill (long_long_double x); extern decimal_float acospidf (decimal_float x); extern decimal_double acospid (decimal_double x); extern decimal_long_double acospidl (decimal_long_double x); extern decimal_long_long_double acospidll (decimal_long_long_double x);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
The inverse function cospi(x) = cos(pi * x), avoid range-reduction issues because the argument x is always an exact scaling of pi.
The value of x should be in the range [-1,+1].