diff options
Diffstat (limited to 'manual/math.texi')
-rw-r--r-- | manual/math.texi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/manual/math.texi b/manual/math.texi index adbe271..90750b2 100644 --- a/manual/math.texi +++ b/manual/math.texi @@ -803,6 +803,22 @@ The @code{pown} functions are from TS 18661-4:2015 (which used @code{long long int} in C23). @end deftypefun +@deftypefun double compoundn (double @var{x}, long long int @var{power}) +@deftypefunx float compoundnf (float @var{x}, long long int @var{power}) +@deftypefunx {long double} compoundnl (long double @var{x}, long long int @var{power}) +@deftypefunx _FloatN compoundnfN (_Float@var{N} @var{x}, long long int @var{power}) +@deftypefunx _FloatNx compoundnfNx (_Float@var{N}x @var{x}, long long int @var{power}) +@standards{TS 18661-4:2015, math.h} +@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} +These return @code{1 + @var{x}} raised to @var{power} (an integer). +If @var{x} is less than @minus{}1, @code{compoundn} signals a domain +error. + +The @code{compoundn} functions are from TS 18661-4:2015 (which used +@code{intmax_t} as the type of @var{power}; the type changed to +@code{long long int} in C23). +@end deftypefun + @cindex square root function @deftypefun double sqrt (double @var{x}) @deftypefunx float sqrtf (float @var{x}) |