Skip to content

Commit c9c51ad

Browse files
committed
gh-153144: Added NEWS entry
1 parent 503fd4a commit c9c51ad

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)