Skip to main content
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
Show menu

IM function


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.


IM(5+3i) returns 3

IM(5) returns 0.



See also

Recommended book

Book cover

Complex Numbers from A to ... Z
Titu Andreescu

Buy from Amazon

Learn how complex numbers may be used to solve algebraic equations, as well as their geometric interpretation Theoretical aspects are augmented with rich exercises and problems at various levels of difficulty