Imag Part

Shipping
imag_part

Extract the imaginary part Im(z) of a complex array (zeros for real input)

Signature

Inputs

  • zArray|Complex|ScalarrequiredComplex or real input. A real input yields an all-zero array of matching length.

Outputs

  • imArrayReal array = Im(z), keeping z's unit; zeros when z is real.

Description

Imag Part returns — the imaginary component of a complex array — as a real array, keeping z's physical unit. It is the complement of Real Part (real_part).

For a real input it returns an array of zeros the same length (the imaginary part of a real number is zero) rather than erroring — so it is safe on any array. The node is stateless.

Mathematics

Examples

Extract the quadrature channel

Feeding into z yields on im. A real yields .

Applications

  • Recovering the sine / quadrature component of an analytic or I/Q signal.
  • Inspecting the imaginary residue of an inverse-FFT result as a numerical-error diagnostic.
  • Building phase-sensitive detectors from complex baseband data.

Neat

A real input synthesizes a zeros vector matched to the real length rather than failing, so 'imag_part' never errors on real arrays.

See also

compleximaginaryextractstateless