Numpy iscomplex() function tests if an element is a complex number or not. It only checks for complex numbers and not for Infinity or NaN values. The iscomplex() function returns result in the Boolean values in a Boolean array. It is defined under numpy, which can be imported as import numpy as np, and we can create multidimensional arrays and derive other mathematical statistics with the help of numpy, which is a library in Python.

#python

Numpy Iscomplex() Example - NP iscomplex() Function
1.15 GEEK