3.5.1.4.2 Imaginary

Description

This function is used to get the imaginary part of the specified complex.

Syntax

double Imaginary(complex cX)

Parameters

cX

The complex number.

Return

Return the imaginary part of the specified complex.

Example

imaginary(1+2i) = ;  // 2

complex c = 3+4i;
imaginary(c) = ;  // 4

See Also

ImReal, Real2Complex