diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-03-05 02:01:34 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-03-12 18:22:47 +0100 |
commit | c4744946cb45e1b49f3fe0069265fc7fef28be9b (patch) | |
tree | 8a9f0a87f24ce2916e3cef956d9bbc8bd60d0e6d | |
parent | 9029431d54e5d8d0cd27820eca660e3ae6751db2 (diff) | |
download | man-pages-c4744946cb45e1b49f3fe0069265fc7fef28be9b.tar.gz |
cbrt.3: wfix: Cube roots are rarely representable
On Thu, Feb 29, 2024 at 07:28:10PM -0500, Morten Welinder wrote:
> The phrase "every representable real value has a representable real
> cube root" is wrong. In fact, a representable cube root is quite
> rare.
Link: <https://lore.kernel.org/linux-man/ZeYKUOKYS7G90SaV@debian/T/#mff0ab388000c6afdb5e5162804d4a0073de481de>
Reported-by: Morten Welinder <mwelinder@gmail.com>
Cowritten-by: Morten Welinder <mwelinder@gmail.com>
Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Cc: Vincent Lefevre <vincent@vinc17.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r-- | man3/cbrt.3 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/man3/cbrt.3 b/man3/cbrt.3 index cf9c41771c..64fc3c0725 100644 --- a/man3/cbrt.3 +++ b/man3/cbrt.3 @@ -47,8 +47,11 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION These functions return the (real) cube root of .IR x . -This function cannot fail; every representable real value has a -representable real cube root. +This function cannot fail; +every representable real value +has a real cube root, +and rounding it to a representable value +never causes overflow nor underflow. .SH RETURN VALUE These functions return the cube root of .IR x . |