TANDEG 3CW "25 January 2008" "mathcw-1.00"

Table of contents


NAME

tandegf, tandeg, tandegl, tandegw, tandegq, tandegll, tandegdf, tandegd, tandegdl, tandegdll - tangent function for argument in degrees

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern float tandegf (float x);

extern double tandeg (double x);

extern long double tandegl (long double x);

extern __float80 tandegw (__float80 x);

extern __float128 tandegq (__float128 x);

extern long_long_double tandegll (long_long_double x);

extern decimal_float tandegdf (decimal_float x);

extern decimal_double tandegd (decimal_double x);

extern decimal_long_double tandegdl (decimal_long_double x);

extern decimal_long_long_double tandegdll (decimal_long_long_double x);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Compute the tangent of x, where the argument is measured in degrees.

The argument is reduced exactly to the range [-90,+90] using the fmod() family before scaling from degrees to radians, and the tangent of that value is then computed. Special cases of arguments at multiples of 45 degrees are handled separately.


RETURN VALUES

If the argument is finite, its tangent is returned. Otherwise, a NaN is returned.

ERRORS

If the argument is a NaN, errno is set to EDOM, and the argument is returned. If the argument is +Infinity or -Infinity, errno is set to EDOM, and a quiet NaN is returned.

SEE ALSO

acos(3CW), acosp(3CW), acospi(3CW), asin(3CW), asinp(3CW), asinpi(3CW), atan(3CW), atan2(3CW), atan2p(3CW), atan2pi(3CW), atanp(3CW), atanpi(3CW), cos(3CW), cosdeg(3CW), cosp(3CW), cospi(3CW), cotan(3CW), cotandeg(3CW), cotanp(3CW), cotanpi(3CW), fmod(3CW), sin(3CW), sincos(3CW), sincosp(3CW), sincospi(3CW), sindeg(3CW), sinp(3CW), sinpi(3CW), tan(3CW), tanp(3CW), tanpi(3CW).