ImSqrt

Description

Calculate the square root of a complex.

Syntax

complex ImSqrt(complex cX)

Parameters

cX

The complex number.

Return

Return the square root of the specified complex.

Example

imSqrt(3+4i) = ;  // 2+1i
 
complex c1 = -1;
complex c2;
c2 = imSqrt(c1);
c2 = ;  // 1i

See Also

ImPower