Im
The imaginary part function.
Syntax
-
Im(x)
-
x
is a number, vector, or matrix
-
Description
-
If
x
is a number,Im(x)
is the imaginary part ofx
. -
If
v
is a vector,Im(v)
is the vector of the imaginary parts ofv
. -
If
A
is a matrix,Im(A)
is the matrix of the imaginary parts ofA
.
Typewise, Im(x)
is always a real number, vector, or matrix.
Examples
Im(1 + √3⋅i)
1.73205080757 (=√3)
Im(e^(π/6⋅i))
0.5 (=1/2)
Im(❨2 + i, 3 − 2⋅i, 1 − i❩)
⎛1 ⎞ e⎜−2⎟ ⎝−1⎠
Im(❨❨5, i❩, ❨−i, −1❩❩)
⎛0 1 ⎞ ⎝−1 0 ⎠