[Fwd: [Bug math/6869] sin() and cos() return grossly wrong results when rounding is set to upward]

-------- Original Message -------- Subject: [Bug math/6869] sin() and cos() return grossly wrong results when rounding is set to upward Date: 29 Sep 2008 16:43:31 -0000 From: anders dot lennartsson at foi dot se sourceware-bugzilla@sourceware.org Reply-To: sourceware-bugzilla@sourceware.org To: bagnara@cs.unipr.it References: 20080905193441.6869.bagnara@cs.unipr.it
------- Additional Comments From anders dot lennartsson at foi dot se 2008-09-29 16:43 ------- Created an attachment (id=2967) --> (http://sourceware.org/bugzilla/attachment.cgi?id=2967&action=view) modified version of test program and plot of results
There are several intervals for which sine and cosine return wrong results, when rounding is adjusted according to the original bug report. I modified the original program to compute values for several angles, and plotted the results. The program and one plot are attached. As it turns out, not even for all arguments where |angle|<pi are the results completely correct.
participants (1)
-
Roberto Bagnara