mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue 23229: add cmath.inf, cmath.nan, cmath.infj and cmath.nanj.
This commit is contained in:
parent
8631da64bb
commit
84e6311dee
4 changed files with 103 additions and 0 deletions
|
@ -259,6 +259,34 @@ Constants
|
|||
|
||||
.. versionadded:: 3.6
|
||||
|
||||
.. data:: inf
|
||||
|
||||
Floating-point positive infinity. Equivalent to ``float('inf')``.
|
||||
|
||||
.. versionadded:: 3.6
|
||||
|
||||
.. data:: infj
|
||||
|
||||
Complex number with zero real part and positive infinity imaginary
|
||||
part. Equivalent to ``complex(0.0, float('inf'))``.
|
||||
|
||||
.. versionadded:: 3.6
|
||||
|
||||
.. data:: nan
|
||||
|
||||
A floating-point "not a number" (NaN) value. Equivalent to
|
||||
``float('nan')``.
|
||||
|
||||
.. versionadded:: 3.6
|
||||
|
||||
.. data:: nanj
|
||||
|
||||
Complex number with zero real part and NaN imaginary part. Equivalent to
|
||||
``complex(0.0, float('nan'))``.
|
||||
|
||||
.. versionadded:: 3.6
|
||||
|
||||
|
||||
.. index:: module: math
|
||||
|
||||
Note that the selection of functions is similar, but not identical, to that in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue