Skip to content

Commit 8e12d53

Browse files
committed
footnote on complex infinity
1 parent 7353470 commit 8e12d53

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

peps/pep-0812.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ For complex multiplication [8]_:
368368
z * w = w * z
369369
(-z) * w = -(z * w)
370370
371-
- if one operand is an infinity and the other operand is a nonzero finite
371+
- if one operand is an infinity [9]_ and the other operand is a nonzero finite
372372
number or an infinity, then the result is an infinity.
373373

374374
For division:
@@ -688,6 +688,11 @@ Footnotes
688688
>>> mul3(w, z)
689689
(inf+infj)
690690
691+
.. [9] A complex value with at least one infinite part is regarded as an
692+
infinity (even if its other part is a NaN). A complex value is a finite
693+
number if each of its parts is a finite number (neither infinite nor NaN).
694+
A complex value is a zero if each of its parts is a zero.
695+
691696
692697
Copyright
693698
=========

0 commit comments

Comments
 (0)