This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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 math/13381] rounding problem wih sincosl


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.


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