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

Roberto Bagnara bagnara at cs.unipr.it
Mon Sep 29 18:58:04 CEST 2008



-------- 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 at sourceware.org>
Reply-To: sourceware-bugzilla at sourceware.org
To: bagnara at cs.unipr.it
References: <20080905193441.6869.bagnara at 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.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6869

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.


-- 
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara at cs.unipr.it



More information about the PPL-devel mailing list