This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [COMMITTED] math: Use accurate answers for cos and sincos.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]