IMAGINARY

Returns the imaginary coefficient of a complex number in x + yi or x + yj text format.

If this function is not available, run the Setup program to install the Analysis ToolPak. After you install the Analysis ToolPak, you must enable it by using the Add-Ins command on the Tools menu.

Syntax

IMAGINARY(inumber)

Inumber   is a complex number for which you want the imaginary coefficient.

Remarks

Examples

IMAGINARY("3+4i") equals 4

IMAGINARY("0-j") equals -1

IMAGINARY(4) equals 0