This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug c/43405] sinl is not computed correctly



------- Comment #8 from eli dot osherovich at gmail dot com  2010-03-19 13:27 -------
(In reply to comment #6)
> Also: 1e22 is not exactly representable as a floating point number. By
> consequence, 1e22 is different numbers when stored as a double or a
> long double, and we should expect different results when applying the
> sine to it.
> 
> W.
> 
This is *not* a problem of binary representation. I tried to use exactly the
same argument (one time double, another time *promoted* to long double). The
function is not implemented correctly, or, at least for some numbers in legal
range.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43405


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