OSDN Git Service

(split) LDP man-pages の original/ を v3.29 に更新。
[linuxjm/LDP_man-pages.git] / original / man3 / asin.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\"     <mtk.manpages@gmail.com>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 2002-07-25 by Walter Harms
31 .\"     (walter.harms@informatik.uni-oldenburg.de)
32 .\"
33 .TH ASIN 3 2010-09-20 "" "Linux Programmer's Manual"
34 .SH NAME
35 asin, asinf, asinl \- arc sine function
36 .SH SYNOPSIS
37 .nf
38 .B #include <math.h>
39 .sp
40 .BI "double asin(double " x );
41 .br
42 .BI "float asinf(float " x );
43 .br
44 .BI "long double asinl(long double " x );
45 .fi
46 .sp
47 Link with \fI\-lm\fP.
48 .sp
49 .in -4n
50 Feature Test Macro Requirements for glibc (see
51 .BR feature_test_macros (7)):
52 .in
53 .sp
54 .ad l
55 .BR asinf (),
56 .BR asinl ():
57 .RS 4
58 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
59 _POSIX_C_SOURCE\ >=\ 200112L;
60 .br
61 or
62 .I cc\ -std=c99
63 .RE
64 .ad b
65 .SH DESCRIPTION
66 The
67 .BR asin ()
68 function calculates the principal value of the arc sine of \fIx\fP;
69 that is the value whose sine is \fIx\fP.
70 .SH "RETURN VALUE"
71 On success, these functions return the principal value of the arc sine of
72 .IR x
73 in radians; the return value is in the range [\-pi/2,\ pi/2].
74
75 If
76 .I x
77 is a NaN, a NaN is returned.
78
79 If
80 .I x
81 is +0 (\-0),
82 +0 (\-0) is returned.
83
84 If
85 .I x
86 is outside the range [\-1,\ 1],
87 a domain error occurs,
88 and a NaN is returned.
89 .\"
90 .\" POSIX.1-2001 documents an optional range error for subnormal x;
91 .\" glibc 2.8 does not do this.
92 .SH ERRORS
93 See
94 .BR math_error (7)
95 for information on how to determine whether an error has occurred
96 when calling these functions.
97 .PP
98 The following errors can occur:
99 .TP
100 Domain error: \fIx\fP is outside the range [\-1,\ 1]
101 .I errno
102 is set to
103 .BR EDOM .
104 An invalid floating-point exception
105 .RB ( FE_INVALID )
106 is raised.
107 .SH "CONFORMING TO"
108 C99, POSIX.1-2001.
109 The variant returning
110 .I double
111 also conforms to
112 SVr4, 4.3BSD, C89.
113 .SH "SEE ALSO"
114 .BR acos (3),
115 .BR atan (3),
116 .BR atan2 (3),
117 .BR casin (3),
118 .BR cos (3),
119 .BR sin (3),
120 .BR tan (3)