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: "rjmarsan at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Dec 2006 03:36:53 -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 rjmarsan at gmail dot com 2006-12-22 03:36 -------
Created an attachment (id=1469)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1469&action=view)
Demonstrates tan(x) slowness for x=pi/2
The attached program demonstrates the difference between calling tan(x) for
random values of x and when x is a multiple of pi/2. When executed, program
should display something like:
$ g++ tan-test.cpp && ./a.out
Random average: 0.0001ms
pi/2 average: 0.52ms
--
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.