This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3783] tan(double x) takes excessive amount of time when x is a multiple of pi/2, x != 0
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Dec 2006 07:41:27 -0000
- Subject: [Bug libc/3783] tan(double x) takes excessive amount of time when x is a multiple of pi/2, x != 0
- References: <20061222033251.3783.rjmarsan@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2006-12-22 07:41 -------
Most of the double libm functions are exact up to 0.5ulp and that's the price to
pay for a correct implementation.
The function first computes the result quickly using FPU instructions and if the
maximum error is sufficiently low, just returns it. If the error is possibly
bigger than 0.5ulp, it needs to compute longer series to make sure the result is
correct.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
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.