This is documentation for an old release of NumPy (version 1.3.). Read this page in the documentation of the latest stable release (version > 1.17).

numpy.imag

numpy.imag(val)

Return the imaginary part of array.

Parameters:

val : array_like

Input array.

Returns:

out : ndarray, real or int

Real part of each element, same shape as val.

Previous topic

numpy.real

Next topic

numpy.conj

This Page

Quick search