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/43490] sin(x) (actually probably all trig) is inaccurate for large x



------- 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


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