2 /* @(#)z_atan.c 1.0 98/08/13 */
6 <<atan>>, <<atanf>>---arc tangent
15 double atan(double <[x]>);
16 float atanf(float <[x]>);
28 <<atan>> computes the inverse tangent (arc tangent) of the input value.
30 <<atanf>> is identical to <<atan>>, save that it operates on <<floats>>.
34 <<atan>> returns a value in radians, in the range of -pi/2 to pi/2.
37 <<atan>> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$.
41 <<atan>> is ANSI C. <<atanf>> is an extension.
45 /******************************************************************
49 * x - floating point value
55 * This routine returns the arctan of x.
57 *****************************************************************/
62 #ifndef _DOUBLE_IS_32BITS
65 _DEFUN (atan
, (double),
74 /* this should check to see if neg NaN or pos NaN... */
75 return (__PI_OVER_TWO
);
79 return (atangent (x
, 0, 0, 0));
83 #endif /* _DOUBLE_IS_32BITS */