This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [COMMITTED] math: Use accurate answers for cos and sincos.
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Carlos O'Donell <carlos at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 24 Apr 2013 20:48:48 +0000
- Subject: Re: [COMMITTED] math: Use accurate answers for cos and sincos.
- References: <5178432B dot 8000405 at redhat dot com>
On Wed, 24 Apr 2013, Carlos O'Donell wrote:
> math: Use accurate answers for cos and sincos.
>
> Use the most accurate hex literals possible for the answers to the
> cos and sincos tests that vary according to the error in the rounding
> of PI/2.
As I noted in <http://sourceware.org/ml/libc-alpha/2013-04/msg00546.html>,
really the *inputs* to these tests should be hex floats, the tests
themselves should then not be conditional on e.g. "float" (only on having
at least the required precision) and the expected *outputs* should be
given in precision above that needed for any supported type (whether in
hex or decimal doesn't really matter, though decimal is usual for this in
libm-test.inc).
--
Joseph S. Myers
joseph@codesourcery.com