On this page
cmath.isinf
Prev: cmath.isfinite | Up: cmath | Next: cmath.isnan
Rel: cmath.acos, cmath.acosh, cmath.asin, cmath.asinh
Ref: docs.python.org — cmath.isinf
Tags: #public #python3 #stdlib #cmath
Import
import cmath
from cmath import isinf
Signature & Overview
cmath.isinf(z, /)
Checks if the real or imaginary part of z is infinite.
Usage
import cmath
assert cmath.isinf(complex(0, float("inf"))) is True
assert cmath.isinf(1 + 2j) is False
Gotchas
- True if EITHER
.realor.imagis infinite.
REPL Inspect
from cmath import isinf
help(isinf)
Linked from
Related notes
- tuts/python3/stdlib_module/cmath/isfinite Linked here; links to this page; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/isnan 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