Skip to content

Commit 9efdbd7

Browse files
committed
Update documents for acosh
The acosh function is only defined for values greater or equal to 1. Documentation was updated according to this. Also, rephrased a confusing sentence. Change-Id: Ifc612c16ce4bbb7ef3631b99da75e8170acea1a0
1 parent 01ba4c9 commit 9efdbd7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/2-references/libm/README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,14 +1587,15 @@ Link with `-lsleef`.
15871587

15881588
#### Description
15891589

1590-
These functions evaluate the inverse hyperbolic cosine function of a value in
1591-
a. The error bound of the returned value is 1.0 ULP if a is in [-1.34e+154,
1592-
1.34e+154] for the double-precision function or 1.001 ULP if a is in
1593-
[-1.84e+19, 1.84e+19] for the single-precision function . If a is a finite
1594-
value out of this range, infinity with a correct sign or a correct value with
1595-
1.0 ULP error bound is returned. These functions treat the non-number arguments
1596-
and return non-numbers as specified in the C99 specification. These functions
1597-
do not set errno nor raise an exception.
1590+
These functions evaluate the inverse hyperbolic cosine function of a value in a.
1591+
The error bound of the returned value is 1.0 ULP if a is in [1, 1.34e+154] for
1592+
the double-precision function or 1.001 ULP if a is in [1, 1.84e+19] for the
1593+
single-precision function. If a is lower than 1, nan is returned (including for
1594+
the negative infinity case). If the argument is positive (including positive
1595+
infinity) but lives outside the ranges defined above, then positive infinity is
1596+
returned. These functions treat the non-number arguments and return non-numbers
1597+
as specified in the C99 specification. These functions do not set errno nor raise
1598+
an exception.
15981599

15991600
### Sleef_atanh_u10
16001601
### Sleef_atanhf_u10

0 commit comments

Comments
 (0)