Im Function

Get the imaginary component of a complex number


Description

The function \(Im\) returns the imaginary component of a complex number. For a complex number \(a + bi \), \(Im \) returns the value of \(b \) as a real number.

The imaginary part of the complex number \(2 - 5i\) is thus \(-5\). We also writes \(Im (2 - 5i) = -5\).


Syntax

Im (xi)

Example

Im(12+2i)= 2