ID EN
Complex Math

isnan

Python 3.11

Return True if either the real or the imaginary part of x is a NaN, and False otherwise.

Syntax

PYTHON
cmath.isnan(x)