This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/13381] rounding problem wih sincosl
- From: "vincent-srcware at vinc17 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 23 Dec 2011 11:41:46 +0000
- Subject: [Bug math/13381] rounding problem wih sincosl
- Auto-submitted: auto-generated
- References: <bug-13381-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13381
--- Comment #12 from Vincent LefÃvre <vincent-srcware at vinc17 dot net> 2011-12-23 11:41:46 UTC ---
(In reply to comment #11)
> The documentation does not mention that the algorithm is different and that
> sincosl could return a different result that cosl and sinl.
It doesn't have to. The C standard doesn't even require that the following
program always return true on finite values of c (i.e. x and y can be
different).
int test (double c)
{
double x, y;
x = sin(c);
y = sin(c);
return x == y;
}
See my SIESTE slides to see how one can easily affect the result returned by
sin().
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.