IM function
Description
IM(A) returns the imaginary part b of the complex number a + bi.
The argument A can be a real number, a complex number or a matrix. When it is a matrix, the function returns a matrix with the same dimensions and with the IM function applied to all elements.
Example
IM(5+3i) returns 3
IM(5) returns 0.