diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2016-08-29 12:56:58 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2016-08-29 12:56:58 (GMT) |
commit | 84e6311dee71bb104e1779c89cf22ff703799086 (patch) | |
tree | 24edd9ad6b2909704f43a402f65ea31e6095be90 /Doc/library/cmath.rst | |
parent | 8631da64bb1f163026b7be82884f8e5b506e0e66 (diff) | |
download | cpython-84e6311dee71bb104e1779c89cf22ff703799086.zip cpython-84e6311dee71bb104e1779c89cf22ff703799086.tar.gz cpython-84e6311dee71bb104e1779c89cf22ff703799086.tar.bz2 |
Issue 23229: add cmath.inf, cmath.nan, cmath.infj and cmath.nanj.
Diffstat (limited to 'Doc/library/cmath.rst')
-rw-r--r-- | Doc/library/cmath.rst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Doc/library/cmath.rst b/Doc/library/cmath.rst index 85393dc..d935c41 100644 --- a/Doc/library/cmath.rst +++ b/Doc/library/cmath.rst @@ -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 |