llvm-project/libcxx/test/std/numerics/complex.number/complex.transcendentals
Mikhail Maltsev 477b5f688c [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

llvm-svn: 325510
2018-02-19 15:41:36 +00:00
..
acos.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 2017-07-19 22:02:29 +00:00
acosh.pass.cpp [libcxx] Improve accuracy of complex asinh and acosh 2018-02-19 15:41:36 +00:00
asin.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 2017-07-19 22:02:29 +00:00
asinh.pass.cpp [libcxx] Improve accuracy of complex asinh and acosh 2018-02-19 15:41:36 +00:00
atan.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3. 2017-02-05 22:47:41 +00:00
atanh.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 2017-07-19 22:02:29 +00:00
cos.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 2017-07-19 22:02:29 +00:00
cosh.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 2017-07-19 22:02:29 +00:00
exp.pass.cpp
log.pass.cpp
log10.pass.cpp Fix unused parameters and variables 2016-12-23 23:37:52 +00:00
pow_complex_complex.pass.cpp Fix unused parameters and variables 2016-12-23 23:37:52 +00:00
pow_complex_scalar.pass.cpp Fix unused parameters and variables 2016-12-23 23:37:52 +00:00
pow_scalar_complex.pass.cpp Fix unused parameters and variables 2016-12-23 23:37:52 +00:00
sin.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 2017-07-19 22:02:29 +00:00
sinh.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 2017-07-19 22:02:29 +00:00
sqrt.pass.cpp
tan.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3. 2017-02-05 22:47:41 +00:00
tanh.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef warnings. 2017-07-19 22:02:29 +00:00