### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Logic functions »

# numpy.isreal

`numpy.``isreal`(x)

  Returns a bool array where True if the corresponding input element is real.

  True if complex part is zero.

  Parameters: | x : array_like Input array.
  Returns: | out : ndarray, bool Boolean array of same shape as x.

  Examples

      >>> np.isreal([1+1j, 1+0j, 4.5, 3, 2, 2j])
      >>> array([False,  True,  True,  True,  True, False], dtype=bool)

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Logic functions »