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
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
8 years ago
..
ccmplx Placate unused variable warnings uncovered by improvements to clang's -Wunused-variable 8 years ago
cmplx.over [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 7/7. 9 years ago
complex Move test into test/std subdirectory. 11 years ago
complex.literals Cleanup _LIBCPP_HAS_NO_<c++11-feature> macros in the numeric tests and headers 9 years ago
complex.member.ops Remove trailing whitespace in test suite. Approved by Marshall Clow. 10 years ago
complex.members Cleanup _LIBCPP_HAS_NO_<c++11-feature> macros in the numeric tests and headers 9 years ago
complex.ops Add markup for libc++ dylib availability 9 years ago
complex.special Cleanup _LIBCPP_HAS_NO_<c++11-feature> macros in the numeric tests and headers 9 years ago
complex.synopsis Move test into test/std subdirectory. 11 years ago
complex.transcendentals [libcxx] Improve accuracy of complex asinh and acosh 8 years ago
complex.value.ops Implement LWG2870: Default value of parameter theta of polar should be dependent 8 years ago
cases.h 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. 10 years ago
layout.pass.cpp Move test into test/std subdirectory. 11 years ago