This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x
- From: "simon dot fenney at imgtec dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2010 12:06:51 -0000
- Subject: [Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x
- References: <bug-43490-18948@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from simon dot fenney at imgtec dot com 2010-03-23 12:06 -------
Created an attachment (id=20168)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20168&action=view)
Trivial test program that outputs sin(x) and sinf(x) for various vals VS
expected results
I haven't added tests for cos or tan etc, but I expect they will be broken as
well. *My guess* is that the range reduction that gets X down to the equivalent
in the range [0, Pi/2] or [0, Pi/4] has broken as the errors get worse with
increasing x.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43490