The IMAGINARY function returns the imaginary part of its complex-valued argument.
Result = IMAGINARY(Complex_Expression)
If the complex-valued argument is double-precision, the result will be double-precision, otherwise the result will be single-precision floating-point.
The complex-valued expression for which the imaginary part is desired.
This routine is written to make use of IDL's thread pool, which can increase execution speed on systems with multiple CPUs. The values stored in the
; Create an array of complex values: C = COMPLEX([1,2,3],[4,5,6]) ; Print just the imaginary parts of each element in C: PRINT, IMAGINARY(C)
IDL prints:
4.00000 5.00000 6.00000
Introduced: Original