aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2024-12-09 23:01:29 +0000
committerJoseph Myers <josmyers@redhat.com>2024-12-09 23:01:29 +0000
commit28d102d15c6af7f80cb1077e098e020476d26d00 (patch)
treeea46b5497d8ed73dab0ada5d3297e85410b5b097 /manual
parentbe13e467641cda4bd147ef3ef3afe9e4c6a35e1d (diff)
downloadglibc-28d102d15c6af7f80cb1077e098e020476d26d00.tar.xz
glibc-28d102d15c6af7f80cb1077e098e020476d26d00.zip
Implement C23 acospi
C23 adds various <math.h> function families originally defined in TS 18661-4. Add the acospi functions (acos(x)/pi). Tested for x86_64 and x86, and with build-many-glibcs.py.
Diffstat (limited to 'manual')
-rw-r--r--manual/math.texi17
1 files changed, 17 insertions, 0 deletions
diff --git a/manual/math.texi b/manual/math.texi
index 5edcfcdc31..c815e6b547 100644
--- a/manual/math.texi
+++ b/manual/math.texi
@@ -442,6 +442,23 @@ Logarithms}.)
If both @var{x} and @var{y} are zero, @code{atan2} returns zero.
@end deftypefun
+@deftypefun double acospi (double @var{x})
+@deftypefunx float acospif (float @var{x})
+@deftypefunx {long double} acospil (long double @var{x})
+@deftypefunx _FloatN acospifN (_Float@var{N} @var{x})
+@deftypefunx _FloatNx acospifNx (_Float@var{N}x @var{x})
+@standards{TS 18661-4:2015, math.h}
+@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
+These functions compute the arccosine of @var{x}, divided by pi. The
+result is in the interval between @code{0} and @code{1} (inclusive).
+
+The arccosine function is defined mathematically only
+over the domain @code{-1} to @code{1}. If @var{x} is outside the
+domain, @code{acospi} signals a domain error.
+
+The @code{acospi} functions are from TS 18661-4:2015.
+@end deftypefun
+
@cindex inverse complex trigonometric functions
@w{ISO C99} defines complex versions of the inverse trig functions.