From ffe79c446ced76d7c1a77804ff2cc32eccbc7c7e Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 11 Dec 2024 21:51:49 +0000 Subject: Implement C23 atanpi C23 adds various function families originally defined in TS 18661-4. Add the atanpi functions (atan(x)/pi). Tested for x86_64 and x86, and with build-many-glibcs.py. --- manual/math.texi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'manual') diff --git a/manual/math.texi b/manual/math.texi index 32c5c057e0..e148fd83ba 100644 --- a/manual/math.texi +++ b/manual/math.texi @@ -476,6 +476,20 @@ domain, @code{acospi} signals a domain error. The @code{acospi} functions are from TS 18661-4:2015. @end deftypefun +@deftypefun double atanpi (double @var{x}) +@deftypefunx float atanpif (float @var{x}) +@deftypefunx {long double} atanpil (long double @var{x}) +@deftypefunx _FloatN atanpifN (_Float@var{N} @var{x}) +@deftypefunx _FloatNx atanpifNx (_Float@var{N}x @var{x}) +@standards{TS 18661-4:2015, math.h} +@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} +These functions compute the arctangent of @var{x}, divided by pi. The +result is in the interval between @code{-0.5} and @code{0.5} +(inclusive). + +The @code{atanpi} 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. -- cgit v1.2.3