diff options
author | Artem Pelenitsyn <a.pelenitsyn@gmail.com> | 2020-06-04 05:09:48 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-06-05 03:18:49 -0400 |
commit | af5e3a885ddd09dd5f550552c535af3661ff3dbf (patch) | |
tree | d7fba407eebfa84fd13c8d1f88868f1cf442fa1b /testsuite/tests/th/T17380.stderr | |
parent | 6a4098a4bb89b3d30cca26d82b82724913062536 (diff) | |
download | haskell-af5e3a885ddd09dd5f550552c535af3661ff3dbf.tar.gz |
base: fix sign confusion in log1mexp implementation (fix #17125)
author: claude (https://gitlab.haskell.org/trac-claude)
The correct threshold for log1mexp is -(log 2) with the current specification
of log1mexp. This change improves accuracy for large negative inputs.
To avoid code duplication, a small helper function is added;
it isn't the default implementation in Floating because it needs Ord.
This patch does nothing to address that the Haskell specification is
different from that in common use in other languages.
Diffstat (limited to 'testsuite/tests/th/T17380.stderr')
0 files changed, 0 insertions, 0 deletions