2 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
3 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
4 .\" <mtk.manpages@gmail.com>
6 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
8 .\" References consulted:
9 .\" Linux libc source code
10 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
12 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
13 .\" Modified 2002-07-25 by Walter Harms
14 .\" (walter.harms@informatik.uni-oldenburg.de)
16 .TH asin 3 (date) "Linux man-pages (unreleased)"
18 asin, asinf, asinl \- arc sine function
21 .RI ( libm ", " \-lm )
26 .BI "double asin(double " x );
27 .BI "float asinf(float " x );
28 .BI "long double asinl(long double " x );
32 Feature Test Macro Requirements for glibc (see
33 .BR feature_test_macros (7)):
39 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
40 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
41 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
44 These functions calculate the principal value of the arc sine of
46 that is the value whose sine is
49 On success, these functions return the principal value of the arc sine of
51 in radians; the return value is in the range [\-pi/2,\ pi/2].
55 is a NaN, a NaN is returned.
64 is outside the range [\-1,\ 1],
65 a domain error occurs,
66 and a NaN is returned.
68 .\" POSIX.1-2001 documents an optional range error for subnormal x;
69 .\" glibc 2.8 does not do this.
73 for information on how to determine whether an error has occurred
74 when calling these functions.
76 The following errors can occur:
78 Domain error: \fIx\fP is outside the range [\-1,\ 1]
82 An invalid floating-point exception
86 For an explanation of the terms used in this section, see
92 Interface Attribute Value
99 T} Thread safety MT-Safe
106 The variant returning