2 /* @(#)z_acos.c 1.0 98/08/13 */
6 <<acos>>, <<acosf>>---arc cosine
15 double acos(double <[x]>);
16 float acosf(float <[x]>);
20 <<acos>> computes the inverse cosine (arc cosine) of the input value.
21 Arguments to <<acos>> must be in the range @minus{}1 to 1.
23 <<acosf>> is identical to <<acos>>, except that it performs
24 its calculations on <<floats>>.
28 <<acos>> and <<acosf>> return values in radians, in the range of 0 to pi
32 <<acos>> and <<acosf>> return values in radians, in the range of <<0>> t
36 If <[x]> is not between @minus{}1 and 1, the returned value is NaN
37 (not a number) the global variable <<errno>> is set to <<EDOM>>, and a
38 <<DOMAIN error>> message is sent as standard error output.
46 acos, [-1,1], acos(arg),,,
47 acos, NAN, arg,DOMAIN,EDOM
50 acosf, [-1,1], acosf(arg),,,
51 acosf, NAN, argf,DOMAIN,EDOM
55 /*****************************************************************
59 * x - floating point value
65 * This routine returns the arccosine of x.
67 *****************************************************************/
72 #ifndef _DOUBLE_IS_32BITS
77 return (asine (x
, 1));
80 #endif /* _DOUBLE_IS_32BITS */