-
numpy.isreal(x)
[source] -
Returns a bool array, where True if input element is real.
If element has complex type with zero complex part, the return value for that element is True.
Parameters: x : array_like
Input array.
Returns: out : ndarray, bool
Boolean array of same shape as
x
.Examples
12>>> np.isreal([
1
+
1j
,
1
+
0j
,
4.5
,
3
,
2
,
2j
])
array([
False
,
True
,
True
,
True
,
True
,
False
], dtype
=
bool
)
numpy.isreal()

2025-01-10 15:47:30
Please login to continue.