3.5.2.3.14 ImLog2

Description

Calculate the base 2 logarithm of a complex.

ImLog2 \left( x+iy \right ) = \frac{ImLn(x+iy)}{ImLn(2)}

where ImLn computes the natural logarithm of the complex, and i=\sqrt{-1}.

Syntax

complex ImLog2(complex cX)

Parameters

cX

The complex number.

Return

Return the base 2 logarithm of the specified complex.

Example

imLog2(3+4i) = ;  // 2.3219280948874+1.337804212451i
 
complex c1 = 1+1i;
complex c2;
c2 = imLog2(c1);
c2 = ;  // 0.5+1.1330900354568i

See Also

ImExp, ImLn, ImLog10