On this page
cmath.isfinite
Prev: cmath.isclose | Up: cmath | Next: cmath.isinf
Rel: cmath.acos, cmath.acosh, cmath.asin, cmath.asinh
Ref: docs.python.org — cmath.isfinite
Tags: #public #python3 #stdlib #cmath
Import
import cmath
from cmath import isfinite
Signature & Overview
cmath.isfinite(z, /)
Return True if both the real and imaginary parts of z are finite, else False.
Usage
import cmath
assert cmath.isfinite(1 + 2j) is True
assert cmath.isfinite(complex(float("inf"), 0)) is False
Gotchas
- True only if BOTH
.realand.imagare finite.
REPL Inspect
from cmath import isfinite
help(isfinite)
Linked from
Related notes
- tuts/python3/stdlib_module/cmath/isclose Linked here; links to this page; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/isinf 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