This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/43405] sinl is not computed correctly
- From: "eli dot osherovich at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Mar 2010 13:27:26 -0000
- Subject: [Bug c/43405] sinl is not computed correctly
- References: <bug-43405-18929@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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