cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> extern float cotandegf (float x); extern double cotandeg (double x); extern long double cotandegl (long double x); extern __float80 cotandegw (__float80 x); extern __float128 cotandegq (__float128 x); extern long_long_double cotandegll (long_long_double x); extern decimal_float cotandegdf (decimal_float x); extern decimal_double cotandegd (decimal_double x); extern decimal_long_double cotandegdl (decimal_long_double x); extern decimal_long_long_double cotandegdll (decimal_long_long_double x);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
The argument is reduced exactly to the range [-90,+90] using the fmod() family before scaling from degrees to radians, and the cotangent of that value is then computed. Special cases of arguments at multiples of 45 degrees are handled separately.