1
by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages. |
1 |
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved |
2
by Francesco Paolo Lovergine
* Alligned to linux main manpages edition. |
2 |
.TH "ASIN" P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" |
1
by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages. |
3 |
.\" asin |
4 |
.SH NAME |
|
5 |
asin, asinf, asinl \- arc sine function
|
|
6 |
.SH SYNOPSIS |
|
7 |
.LP
|
|
8 |
\fB#include <math.h>
|
|
9 |
.br
|
|
10 |
.sp
|
|
11 |
double asin(double\fP \fIx\fP\fB); |
|
12 |
.br
|
|
13 |
float asinf(float\fP \fIx\fP\fB); |
|
14 |
.br
|
|
15 |
long double asinl(long double\fP \fIx\fP\fB); |
|
16 |
.br
|
|
17 |
\fP
|
|
18 |
.SH DESCRIPTION |
|
19 |
.LP
|
|
20 |
These functions shall compute the principal value of the arc sine |
|
21 |
of their argument \fIx\fP. The value of \fIx\fP should be in |
|
22 |
the range [-1,1]. |
|
23 |
.LP
|
|
24 |
An application wishing to check for error situations should set \fIerrno\fP |
|
25 |
to zero and call |
|
26 |
\fIfeclearexcept\fP(FE_ALL_EXCEPT) before calling these functions. |
|
27 |
On return, if \fIerrno\fP is non-zero or |
|
28 |
\fIfetestexcept\fP(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW) |
|
29 |
is non-zero, an error has occurred. |
|
30 |
.SH RETURN VALUE |
|
31 |
.LP
|
|
32 |
Upon successful completion, these functions shall return the arc sine |
|
33 |
of \fIx\fP, in the range [-pi/2,pi/2] radians. |
|
34 |
.LP
|
|
35 |
For finite values of \fIx\fP not in the range [-1,1], a domain error |
|
36 |
shall occur, and \ either a NaN
|
|
37 |
(if supported), or \ an implementation-defined value shall be
|
|
38 |
returned. |
|
39 |
.LP
|
|
40 |
If |
|
41 |
\fIx\fP is NaN, a NaN shall be returned. |
|
42 |
.LP
|
|
43 |
If \fIx\fP is \(+-0, \fIx\fP shall be returned. |
|
44 |
.LP
|
|
45 |
If \fIx\fP is \(+-Inf, a domain error shall occur, and either a NaN |
|
46 |
(if supported), or an implementation-defined value |
|
47 |
shall be returned. |
|
48 |
.LP
|
|
49 |
If \fIx\fP is subnormal, a range error may occur and \fIx\fP should |
|
50 |
be returned. |
|
51 |
.SH ERRORS |
|
52 |
.LP
|
|
53 |
These functions shall fail if: |
|
54 |
.TP 7 |
|
55 |
Domain\ Error
|
|
56 |
The \fIx\fP argument is finite and is not in the range [-1,1], \ or |
|
57 |
is \(+-Inf.
|
|
58 |
.LP
|
|
59 |
If the integer expression (math_errhandling & MATH_ERRNO) is non-zero, |
|
60 |
then \fIerrno\fP shall be set to [EDOM]. If the |
|
61 |
integer expression (math_errhandling & MATH_ERREXCEPT) is non-zero, |
|
62 |
then the invalid floating-point exception shall be |
|
63 |
raised. |
|
64 |
.sp
|
|
65 |
.LP
|
|
66 |
These functions may fail if: |
|
67 |
.TP 7 |
|
68 |
Range\ Error
|
|
69 |
The value of \fIx\fP is subnormal. |
|
70 |
.LP
|
|
71 |
If the integer expression (math_errhandling & MATH_ERRNO) is non-zero, |
|
72 |
then \fIerrno\fP shall be set to [ERANGE]. If the |
|
73 |
integer expression (math_errhandling & MATH_ERREXCEPT) is non-zero, |
|
74 |
then the underflow floating-point exception shall be |
|
75 |
raised. |
|
76 |
.sp
|
|
77 |
.LP
|
|
78 |
\fIThe following sections are informative.\fP |
|
79 |
.SH EXAMPLES |
|
80 |
.LP
|
|
81 |
None. |
|
82 |
.SH APPLICATION USAGE |
|
83 |
.LP
|
|
84 |
On error, the expressions (math_errhandling & MATH_ERRNO) and (math_errhandling |
|
85 |
& MATH_ERREXCEPT) are independent of |
|
86 |
each other, but at least one of them must be non-zero. |
|
87 |
.SH RATIONALE |
|
88 |
.LP
|
|
89 |
None. |
|
90 |
.SH FUTURE DIRECTIONS |
|
91 |
.LP
|
|
92 |
None. |
|
93 |
.SH SEE ALSO |
|
94 |
.LP
|
|
95 |
\fIfeclearexcept\fP() , \fIfetestexcept\fP() , \fIisnan\fP() , \fIsin\fP() |
|
96 |
, the Base Definitions volume of |
|
97 |
IEEE\ Std\ 1003.1-2001, Section 4.18, Treatment of Error Conditions |
|
98 |
for |
|
99 |
Mathematical Functions, \fI<math.h>\fP |
|
100 |
.SH COPYRIGHT |
|
101 |
Portions of this text are reprinted and reproduced in electronic form |
|
102 |
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology |
|
103 |
-- Portable Operating System Interface (POSIX), The Open Group Base |
|
104 |
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of |
|
105 |
Electrical and Electronics Engineers, Inc and The Open Group. In the |
|
106 |
event of any discrepancy between this version and the original IEEE and |
|
107 |
The Open Group Standard, the original IEEE and The Open Group Standard |
|
108 |
is the referee document. The original Standard can be obtained online at |
|
109 |
http://www.opengroup.org/unix/online.html . |