cpython/Lib/test/mathdata
Sergey B Kirpichev e6fad7a0e3
gh-122637: fix tanh(±0+infj) and tanh(±0+nanj) to return ±0+nanj (#122638)
As per C11 DR#471, ctanh (0 + i NaN) and ctanh (0 + i Inf) should return
0 + i NaN (with "invalid" exception in the second case).  This has
corresponding implications for ctan(z), as its errors and special cases
are handled as if the operation is implemented by -i*ctanh(i*z).
This patch fixes cmath's code to do same.

Glibs patch: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d15e83c5f5231d971472b5ffc9219d54056ca0f1
2024-08-04 10:05:30 +01:00
..
cmath_testcases.txt gh-122637: fix tanh(±0+infj) and tanh(±0+nanj) to return ±0+nanj (#122638) 2024-08-04 10:05:30 +01:00
floating_points.txt
formatfloat_testcases.txt
ieee754.txt
math_testcases.txt