3.5.1.4.17 ImReal

Description

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

Syntax

double ImReal(complex cX)

Parameters

cX

The complex number.

Return

Return the real part of the specified complex.

Example

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

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

See Also

Imaginary, Real2Complex