TANP 3CW "12 December 2007" "mathcw-1.00"
Table of contents
tanpf, tanp, tanpl, tanpw, tanpq, tanpll, tanpdf, tanpd, tanpdl, tanpdll - tangent function
cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]
#include <mathcw.h>
extern float tanpf (float x);
extern double tanp (double x);
extern long double tanpl (long double x);
extern __float80 tanpw (__float80 x);
extern __float128 tanpq (__float128 x);
extern long_long_double tanpll (long_long_double x);
extern decimal_float tanpdf (decimal_float x);
extern decimal_double tanpd (decimal_double x);
extern decimal_long_double tanpdl (decimal_long_double x);
extern decimal_long_long_double tanpdll (decimal_long_long_double x);
NB: Functions with prototypes containing underscores in type names
may be available only with certain extended compilers.
Compute the tangent of
x,
where the argument is measured in radians. Unlike the normal tangent
function, the argument is reduced to the interval [-pi/2,+pi/2]
as
x = PI * n + r
where PI is the best floating-point approximation to pi in
working precision. The function value is then tan(r).
If the argument is finite, its tangent is returned. Otherwise, a NaN
is returned.
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.
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),
cosp(3CW),
cospi(3CW),
cotan(3CW),
cotanp(3CW),
cotanpi(3CW),
sin(3CW),
sincos(3CW),
sincosp(3CW),
sincospi(3CW),
sinp(3CW),
sinpi(3CW),
tan(3CW),
tanpi(3CW).