[LLVMbugs] [Bug 13874] New: std::tan of std::complex Calculation Error
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Sep 19 09:36:27 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13874
Bug #: 13874
Summary: std::tan of std::complex Calculation Error
Product: libc++
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: bfulgham at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9235
--> http://llvm.org/bugs/attachment.cgi?id=9235
Test case of error
Computing the tangent of the complex number (1000.0, -1000.0i) yields NaN when
using the new LLVM libc++ implementation.
See the attached example program for a demonstration of the error:
Expected Result:
std::tan (1000.0, -1000.0) -> (0, -1)
Actual Result:
std::tan (1000.0, -1000.0) -> (0, nan)
This was found under the Clang/C++ libraries shipped with Xcode:
Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.1.0
Also filed with Apple as Radar 12328683.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list