You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/numerics/complex.number/complex.transcendentals
Mikhail Maltsev c4658abe60 [libcxx] Improve accuracy of complex asinh and acosh
Summary:
Currently std::asinh and std::acosh use std::pow to compute x^2. This
results in a significant error when computing e.g. asinh(i) or
acosh(-1).

This patch expresses x^2 directly via x.real() and x.imag(), like it
is done in libstdc++/glibc, and adds tests that checks the accuracy.

Reviewers: EricWF, mclow.lists

Reviewed By: mclow.lists

Subscribers: christof, cfe-commits

Differential Revision: https://reviews.llvm.org/D41629

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@325510 91177308-0d34-0410-b5e6-96231b3b80d8
7 years ago
..
acos.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 7 years ago
acosh.pass.cpp [libcxx] Improve accuracy of complex asinh and acosh 7 years ago
asin.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 7 years ago
asinh.pass.cpp [libcxx] Improve accuracy of complex asinh and acosh 7 years ago
atan.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3. 8 years ago
atanh.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 7 years ago
cos.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 7 years ago
cosh.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 7 years ago
exp.pass.cpp Rename some test data (and make it const) to rid us of some shadowing warnings in the test suite. No functional change. Thanks to STL@microsoft for the report and patch. 9 years ago
log.pass.cpp Rename some test data (and make it const) to rid us of some shadowing warnings in the test suite. No functional change. Thanks to STL@microsoft for the report and patch. 9 years ago
log10.pass.cpp Fix unused parameters and variables 8 years ago
pow_complex_complex.pass.cpp Fix unused parameters and variables 8 years ago
pow_complex_scalar.pass.cpp Fix unused parameters and variables 8 years ago
pow_scalar_complex.pass.cpp Fix unused parameters and variables 8 years ago
sin.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 7 years ago
sinh.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 7 years ago
sqrt.pass.cpp Rename some test data (and make it const) to rid us of some shadowing warnings in the test suite. No functional change. Thanks to STL@microsoft for the report and patch. 9 years ago
tan.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3. 8 years ago
tanh.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 7 years ago