From: Alejandro Colomar <alx@kernel.org>
To: Morten Welinder <mwelinder@gmail.com>
Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>,
linux-man@vger.kernel.org
Subject: Re: Man page issues: logb, significand, cbrt, log2, log10, exp10
Date: Tue, 5 Mar 2024 02:05:54 +0100 [thread overview]
Message-ID: <ZeZv8gYTX9oExwMx@debian> (raw)
In-Reply-To: <CANv4PNkVv_0eLgiSP3L_KfC-eZJaVLZ5AP1AGfD0GNrR5M4Hrg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1967 bytes --]
Hi Morten,
On Thu, Feb 29, 2024 at 07:28:10PM -0500, Morten Welinder wrote:
> cbrt:
> The phrase "every representable real value has a representable real
> cube root" is wrong. In fact, a representable cube root is quite
> rare. This should be something like "every representable real value
> has a real cube root and rounding it to a representable value never
> causes overflow or underflow."
Thanks for the report! I've fixed it with the following commit (your
wording, except for a 'nor' instead of 'or').
This one is also present in the glibc manual, so I'll also send a fix
for it, Adhemerval.
Have a lovely night!
Alex
---
commit da7bb7434ce8b20deaed58cac9e942c3531a5db3 (HEAD -> contrib)
Author: Alejandro Colomar <alx@kernel.org>
Date: Tue Mar 5 02:01:34 2024 +0100
cbrt.3: wfix
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.
Reported-by: Morten Welinder <mwelinder@gmail.com>
Cowritten-by: Morten Welinder <mwelinder@gmail.com>
Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
diff --git a/man3/cbrt.3 b/man3/cbrt.3
index cf9c41771..64fc3c072 100644
--- a/man3/cbrt.3
+++ b/man3/cbrt.3
@@ -47,8 +47,11 @@ .SH SYNOPSIS
.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 .
--
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-03-05 1:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-01 0:28 Man page issues: logb, significand, cbrt, log2, log10, exp10 Morten Welinder
2024-03-01 0:53 ` Alejandro Colomar
2024-03-02 21:17 ` Morten Welinder
2024-03-02 21:54 ` Alejandro Colomar
2024-03-03 2:02 ` Morten Welinder
2024-03-03 2:21 ` Alejandro Colomar
2024-03-03 11:46 ` Vincent Lefevre
2024-03-03 12:21 ` Alejandro Colomar
2024-03-03 22:26 ` Morten Welinder
2024-03-04 12:17 ` Adhemerval Zanella Netto
2024-03-04 17:52 ` logb() vs floor(log2()) (was: Man page issues: logb, significand, cbrt, log2, log10, exp10) Alejandro Colomar
2024-03-04 18:47 ` logb() vs floor(log2()) Adhemerval Zanella Netto
2024-03-04 22:16 ` Alejandro Colomar
2024-03-04 23:23 ` logb() vs floor(log2()) (was: Man page issues: logb, significand, cbrt, log2, log10, exp10) Alejandro Colomar
2024-03-05 0:46 ` Man page issues: logb, significand, cbrt, log2, log10, exp10 Alejandro Colomar
2024-03-05 1:05 ` Alejandro Colomar [this message]
2024-03-05 1:18 ` Alejandro Colomar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZeZv8gYTX9oExwMx@debian \
--to=alx@kernel.org \
--cc=adhemerval.zanella@linaro.org \
--cc=linux-man@vger.kernel.org \
--cc=mwelinder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.