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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs