public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Paul Zimmermann <Paul.Zimmermann@inria.fr>
To: newlib@sourceware.org
Cc: vincenzo.innocente@cern.ch
Subject: error in tgamma
Date: Wed, 08 Feb 2023 16:55:51 +0100	[thread overview]
Message-ID: <mwr0v05eyg.fsf@coriandre.loria.fr> (raw)

       Hi,

while testing Newlib 4.3.0, I also noticed the following regression
with respect to 4.2.0 for tgammaf:

zimmerma@tartine:~/svn/tbd/20/src/binary32_exhaustive$ VERBOSE=-v ./doit2.newlib tgamma
Checking tgamma with newlib-4.3.0.20230120
Using RedHat newlib
MPFR library: 4.2.0       
MPFR header:  4.2.0 (based on 4.2.0)
Checking function tgammaf with MPFR_RNDN
...
libm wrong by up to nan ulp(s) [9223372036854775808] for x=-0x1p+0
tgamma      gives inf
mpfr_tgamma gives -nan

For a negative integer, tgamma should return NaN.

Best regards,
Paul Zimmermann

             reply	other threads:[~2023-02-08 15:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-08 15:55 Paul Zimmermann [this message]
2023-02-08 16:09 ` error in tgammaf Paul Zimmermann

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=mwr0v05eyg.fsf@coriandre.loria.fr \
    --to=paul.zimmermann@inria.fr \
    --cc=newlib@sourceware.org \
    --cc=vincenzo.innocente@cern.ch \
    /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).