ImAbs

Description

Get the modulus of a complex.

Syntax

double ImAbs(complex cX)

Parameters

cX

The complex number.

Return

Return the modulus of the specified complex.

Example

imabs(3+4i) = ;  // 5

complex c = 1+1i;
imabs(c) = ;  // 1.4142135623731