Commit | Line | Data |
---|---|---|
be8ee4f0 C |
1 | ACOS(3) BSD Programmer's Manual ACOS(3) |
2 | ||
3 | N\bNA\bAM\bME\bE | |
4 | a\bac\bco\bos\bs - arc cosine function | |
5 | ||
6 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
7 | #\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<m\bma\bat\bth\bh.\b.h\bh>\b> | |
8 | ||
9 | _\bd_\bo_\bu_\bb_\bl_\be | |
10 | a\bac\bco\bos\bs(_\bd_\bo_\bu_\bb_\bl_\be _\bx); | |
11 | ||
12 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
13 | The a\bac\bco\bos\bs() function computes the principal value of the arc cosine of _\bx. | |
14 | A domain error occurs for arguments not in the range [-1, +1]. For a | |
15 | discussion of error due to roundoff, see math(3). | |
16 | ||
17 | R\bRE\bET\bTU\bUR\bRN\bN V\bVA\bAL\bLU\bUE\bES\bS | |
18 | The a\bac\bco\bos\bs() function returns the arc cosine in the range [0, pi] radians. | |
19 | On the VAX and Tahoe, if: | |
20 | ||
21 | |_\bx| > 1, | |
22 | ||
23 | a\bac\bco\bos\bs(_\bx) sets the global variable _\be_\br_\br_\bn_\bo to EDOM and a reserved operand | |
24 | fault is generated. | |
25 | ||
26 | S\bSE\bEE\bE A\bAL\bLS\bSO\bO | |
27 | sin(3), cos(3), tan(3), asin(3), atan(3), atan2(3), sinh(3), | |
28 | cosh(3), tanh(3), math(3), | |
29 | ||
30 | S\bST\bTA\bAN\bND\bDA\bAR\bRD\bDS\bS | |
31 | The a\bac\bco\bos\bs() function conforms to ANSI C X3.159-1989 (``ANSI C ''). | |
32 | ||
33 | 4.4BSD June 4, 1993 1 |