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: libm-test.inc: Computing ulps near FP_ZERO.


On 04/08/2013 10:09 PM, Rich Felker wrote:
> I'm a bit confused about this whole discussion. If the test is
> cos(M_PI_2) then according to Wolfram Alpha,
> cos(1.5707963267948965579989817342720925807952880859375), where that
> argument is the exact value of M_PI_2, evaluates to approximately:
> 
>     6.123233995736765886130329661375001... Ã 10^-17

Could you do me a favour and compute:

cpow (0.75 + 1.25 i, 0.75 + 1.25 i)?

Could you also compute:

cosf(M_PI_2)?

That is to say the 32-bit float variant with rounding for M_PI_2 to
float?

Cheers,
Carlos.


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