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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
libcxx_old/test/libcxx/numerics
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
..
c.math cmath: Support clang's -fdelayed-template-parsing 8 years ago
cfenv Move remaining _LIBCPP_VERSION tests into test/libcxx 10 years ago
complex.number [libcxx] Improve accuracy of complex asinh and acosh 8 years ago
numarray Move remaining _LIBCPP_VERSION tests into test/libcxx 10 years ago
numeric.ops Move remaining _LIBCPP_VERSION tests into test/libcxx 10 years ago
rand/rand.synopsis Move remaining _LIBCPP_VERSION tests into test/libcxx 10 years ago