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