logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

asin.3p (4286B)


  1. '\" et
  2. .TH ASIN "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. asin,
  12. asinf,
  13. asinl
  14. \(em arc sine function
  15. .SH SYNOPSIS
  16. .LP
  17. .nf
  18. #include <math.h>
  19. .P
  20. double asin(double \fIx\fP);
  21. float asinf(float \fIx\fP);
  22. long double asinl(long double \fIx\fP);
  23. .fi
  24. .SH DESCRIPTION
  25. The functionality described on this reference page is aligned with the
  26. ISO\ C standard. Any conflict between the requirements described here and the
  27. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  28. .P
  29. These functions shall compute the principal value of the arc sine of
  30. their argument
  31. .IR x .
  32. The value of
  33. .IR x
  34. should be in the range [\-1,1].
  35. .P
  36. An application wishing to check for error situations should set
  37. .IR errno
  38. to zero and call
  39. .IR feclearexcept (FE_ALL_EXCEPT)
  40. before calling these functions. On return, if
  41. .IR errno
  42. is non-zero or \fIfetestexcept\fR(FE_INVALID | FE_DIVBYZERO |
  43. FE_OVERFLOW | FE_UNDERFLOW) is non-zero, an error has occurred.
  44. .SH "RETURN VALUE"
  45. Upon successful completion, these functions shall return the arc sine
  46. of
  47. .IR x ,
  48. in the range [\-\(*p/2,\(*p/2] radians.
  49. .P
  50. For finite values of
  51. .IR x
  52. not in the range [\-1,1], a domain error shall occur, and
  53. either a NaN (if supported), or
  54. an implementation-defined value shall be returned.
  55. .P
  56. If
  57. .IR x
  58. is NaN, a NaN shall be returned.
  59. .P
  60. If
  61. .IR x
  62. is \(+-0,
  63. .IR x
  64. shall be returned.
  65. .P
  66. If
  67. .IR x
  68. is \(+-Inf, a domain error shall occur, and a NaN shall be returned.
  69. .P
  70. If
  71. .IR x
  72. is subnormal, a range error may occur
  73. .br
  74. and
  75. .IR x
  76. should be returned.
  77. .P
  78. If
  79. .IR x
  80. is not returned,
  81. \fIasin\fR(),
  82. \fIasinf\fR(),
  83. and
  84. \fIasinl\fR()
  85. shall return an implementation-defined value no greater in magnitude
  86. than DBL_MIN, FLT_MIN, and LDBL_MIN, respectively.
  87. .SH ERRORS
  88. These functions shall fail if:
  89. .IP "Domain\ Error" 12
  90. The
  91. .IR x
  92. argument is finite and is not in the range [\-1,1],
  93. or is \(+-Inf.
  94. .RS 12
  95. .P
  96. If the integer expression (\fImath_errhandling\fR & MATH_ERRNO) is
  97. non-zero, then
  98. .IR errno
  99. shall be set to
  100. .BR [EDOM] .
  101. If the integer expression (\fImath_errhandling\fR & MATH_ERREXCEPT) is
  102. non-zero, then the invalid floating-point exception shall be raised.
  103. .RE
  104. .P
  105. These functions may fail if:
  106. .IP "Range\ Error" 12
  107. The value of
  108. .IR x
  109. is subnormal.
  110. .RS 12
  111. .P
  112. If the integer expression (\fImath_errhandling\fR & MATH_ERRNO) is
  113. non-zero, then
  114. .IR errno
  115. shall be set to
  116. .BR [ERANGE] .
  117. If the integer expression (\fImath_errhandling\fR & MATH_ERREXCEPT) is
  118. non-zero, then the underflow floating-point exception shall be raised.
  119. .RE
  120. .LP
  121. .IR "The following sections are informative."
  122. .SH EXAMPLES
  123. None.
  124. .SH "APPLICATION USAGE"
  125. On error, the expressions (\fImath_errhandling\fR & MATH_ERRNO) and
  126. (\fImath_errhandling\fR & MATH_ERREXCEPT) are independent of each
  127. other, but at least one of them must be non-zero.
  128. .SH RATIONALE
  129. None.
  130. .SH "FUTURE DIRECTIONS"
  131. None.
  132. .SH "SEE ALSO"
  133. .IR "\fIfeclearexcept\fR\^(\|)",
  134. .IR "\fIfetestexcept\fR\^(\|)",
  135. .IR "\fIisnan\fR\^(\|)",
  136. .IR "\fIsin\fR\^(\|)"
  137. .P
  138. The Base Definitions volume of POSIX.1\(hy2017,
  139. .IR "Section 4.20" ", " "Treatment of Error Conditions for Mathematical Functions",
  140. .IR "\fB<math.h>\fP"
  141. .\"
  142. .SH COPYRIGHT
  143. Portions of this text are reprinted and reproduced in electronic form
  144. from IEEE Std 1003.1-2017, Standard for Information Technology
  145. -- Portable Operating System Interface (POSIX), The Open Group Base
  146. Specifications Issue 7, 2018 Edition,
  147. Copyright (C) 2018 by the Institute of
  148. Electrical and Electronics Engineers, Inc and The Open Group.
  149. In the event of any discrepancy between this version and the original IEEE and
  150. The Open Group Standard, the original IEEE and The Open Group Standard
  151. is the referee document. The original Standard can be obtained online at
  152. http://www.opengroup.org/unix/online.html .
  153. .PP
  154. Any typographical or formatting errors that appear
  155. in this page are most likely
  156. to have been introduced during the conversion of the source files to
  157. man page format. To report such errors, see
  158. https://www.kernel.org/doc/man-pages/reporting_bugs.html .