There was an error while loading. Please reload this page.
1 parent 503fd4a commit c9c51adCopy full SHA for c9c51ad
1 file changed
Misc/NEWS.d/next/Library/2026-07-20-09-35-32.gh-issue-153144.0a2AoO.rst
@@ -0,0 +1,7 @@
1
+The return values of ``atan2(0.0, 0.0)``, ``atan2(0.0, -0.0)``, etc. are
2
+specified in Annex F of the C standard. The Intel math library, for legacy
3
+compatibility, also sets ``errno`` to indicate a domain error when both
4
+arguments are zero. Python's :func:`math.atan2` and :func:`cmath.phase`
5
+should return the values specified by Annex F, not raise ``ValueError``.
6
+This patch fixes these cases when building Python with the Intel math
7
+library. Contributed by High Performance Kernels LLC.
0 commit comments