]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-121889: cmath.acosh(0+nanj) returns nan+pi/2j (#121892)
authorSergey B Kirpichev <skirpichev@gmail.com>
Sun, 4 Aug 2024 08:53:17 +0000 (11:53 +0300)
committerGitHub <noreply@github.com>
Sun, 4 Aug 2024 08:53:17 +0000 (09:53 +0100)
commit3462a80d2cf37a63fe43f46f64a8c9823f84531d
treec6870dfefae1447a500abc164c4714f86ba17d79
parent151934a324789c58cca9c7bbd6753d735454df5a
gh-121889: cmath.acosh(0+nanj) returns nan+pi/2j (#121892)

As per C11 DR#471 (adjusted resolution accepted for C17), cacosh (0 +
iNaN) should return NaN ± i pi/2, not NaN + iNaN.  This patch
fixes cmath's code to do same.
Lib/test/mathdata/cmath_testcases.txt
Misc/NEWS.d/next/Library/2024-07-17-09-23-03.gh-issue-121889.6se9jS.rst [new file with mode: 0644]
Modules/cmathmodule.c