public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Paul Zimmermann <Paul.Zimmermann@inria.fr>
To: Vincent Lefevre <vincent@vinc17.net>
Cc: libc-alpha@sourceware.org
Subject: Re: document the fact that "Known Maximum Errors" might not be maximal
Date: Fri, 16 Feb 2024 11:54:03 +0100	[thread overview]
Message-ID: <p9u0y1bk1xys.fsf@coriandre.loria.fr> (raw)
In-Reply-To: <20240216102258.GB3653@qaa.vinc17.org> (message from Vincent Lefevre on Fri, 16 Feb 2024 11:22:58 +0100)

       Vincent,

> If I understand correctly, Carlos means (unintended) bugs, in which
> case, values may even be completely wrong (as already seen). I think
> that saying "documented elsewhere" is misleading. And note that bugs
> are not specific to the math functions. Any buggy library function
> will not behave as described in the manual. You should rather say
> that the given bounds obviously do not take bugs into account, if
> you think that this is worth recalling.

of course *unknown* bugs might exist, but we are speaking of *known* defects here.

The issue is that the manual says "*Known* Maximum Errors in Math Functions".

What do you suggest to avoid users deducing from the manual that the ulp error on say y0
is bounded by 3 ulps on x86_64, whereas it can be as large as 5.93e15 ulps?

Checking y0 with glibc-2.39/build and rndn
GNU libc version: 2.39
GNU libc release: stable
y0 0 -1 0x1.c982eb8d417eap-1 [5920543797734652] [5.93e+15] 5.92055e+15 5920543797734652
libm gives -0x1.8p-55
mpfr gives -0x1.af74bfa0f1304p-56

Paul



  reply	other threads:[~2024-02-16 10:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-16  8:48 Paul Zimmermann
2024-02-16  9:43 ` Vincent Lefevre
2024-02-16 10:02   ` Paul Zimmermann
2024-02-16 10:22     ` Vincent Lefevre
2024-02-16 10:54       ` Paul Zimmermann [this message]
2024-02-16 12:39         ` Vincent Lefevre
2024-02-16 17:32           ` Joseph Myers
2024-02-16 17:22   ` Joseph Myers

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=p9u0y1bk1xys.fsf@coriandre.loria.fr \
    --to=paul.zimmermann@inria.fr \
    --cc=libc-alpha@sourceware.org \
    --cc=vincent@vinc17.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).