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 ** Attachment added: "Demonstrates tan(x) slowness for x=pi/2" http://librarian.launchpad.net/5482922/tan-test.cpp -- tan(double x) takes excessive amount of time when x is a multiple of pi/2, x != 0 https://launchpad.net/bugs/53312 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs