On this page
cmath.isnan
Prev: cmath.isinf | Up: cmath | Next: cmath.log
Rel: cmath.acos, cmath.acosh, cmath.asin, cmath.asinh
Ref: docs.python.org — cmath.isnan
Tags: #public #python3 #stdlib #cmath
Import
import cmath
from cmath import isnan
Signature & Overview
cmath.isnan(z, /)
Checks if the real or imaginary part of z not a number (NaN).
Usage
import cmath
assert cmath.isnan(complex(float("nan"), 1.0)) is True
Gotchas
- True if EITHER
.realor.imagis NaN.
REPL Inspect
from cmath import isnan
help(isnan)
Linked from
Related notes
- tuts/python3/stdlib_module/cmath/isinf Linked here; links to this page; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/log Linked here; links to this page; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/cmath/acos Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/acosh Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/asin Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/asinh Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/atan shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/atanh shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/cos shared tags: #cmath, #stdlib