From: Paul Zimmermann <Paul.Zimmermann@inria.fr>
To: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Cc: newlib@sourceware.org, vincenzo.innocente@cern.ch
Subject: Re: error in tgammaf
Date: Wed, 08 Feb 2023 17:09:28 +0100 [thread overview]
Message-ID: <mwo7q45ebr.fsf@coriandre.loria.fr> (raw)
In-Reply-To: <mwr0v05eyg.fsf@coriandre.loria.fr> (message from Paul Zimmermann on Wed, 08 Feb 2023 16:55:51 +0100)
sorry I fixed the subject which was misleading.
This is for tgammaf (and not tgamma), i.e.,
the single precision function.
Paul
> Date: Wed, 08 Feb 2023 16:55:51 +0100
> From: Paul Zimmermann <Paul.Zimmermann@inria.fr>
> CC: vincenzo.innocente@cern.ch
>
> 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
prev parent reply other threads:[~2023-02-08 16:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-08 15:55 error in tgamma Paul Zimmermann
2023-02-08 16:09 ` Paul Zimmermann [this message]
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=mwo7q45ebr.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).