2 /* @(#)z_atan2.c 1.0 98/08/13 */
6 <<atan2>>, <<atan2f>>---arc tangent of y/x
15 double atan2(double <[y]>,double <[x]>);
16 float atan2f(float <[y]>,float <[x]>);
20 <<atan2>> computes the inverse tangent (arc tangent) of <[y]>/<[x]>.
21 <<atan2>> produces the correct result even for angles near
28 (that is, when <[x]> is near 0).
30 <<atan2f>> is identical to <<atan2>>, save that it takes and returns
34 <<atan2>> and <<atan2f>> return a value in radians, in the range of
42 If both <[x]> and <[y]> are 0.0, <<atan2>> causes a <<DOMAIN>> error.
45 <<atan2>> is ANSI C. <<atan2f>> is an extension.
50 /******************************************************************
54 * v, u - floating point values
60 * This routine returns the arctan2 of v / u.
62 *****************************************************************/
67 #ifndef _DOUBLE_IS_32BITS
73 return (atangent (0.0, v
, u
, 1));
76 #endif /* _DOUBLE_IS_32BITS */