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 libc/3783] tan(double x) takes excessive amount of time when x is a multiple of pi/2, x != 0


------- Additional Comments From jakub at redhat dot com  2006-12-22 10:40 -------
Neither tanl nor tanf (unfortunately) are precise up to 0.5ulp, see
e.g. http://www.inf.ethz.ch/personal/gonnet/FPAccuracy/ testsuite for a proof.
And, when expecting exact 0 from a trigonometric function, the computation
needed for 0.5ulp precise result is obviously most expensive, not cheapest,
because .5ulp for 0.0 is of course orders of magnitude smaller than 0.5ulp
for 1.0 (you need error below or equal to 2.47033e-324 for IEEE double, while
if result is 1.0, the error needs to be below or equal to 1.110225e-16).

-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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