3.5.2.3.11 ImExp

Description

Calculate the exponential value for a complex.

ImExp \left (x+iy \right ) = e^x*(cos(y)+sin(y)*i)

where i=\sqrt{-1}.

Syntax

complex ImExp(complex cX)

Parameters

cX

The complex number.

Return

Return the exponential value for the specified complex.

Example

imExp(1i*pi) = ;  // -1+1.2246467991474E-16i
 
complex c1 = 3+4i;
complex c2;
c2 = imExp(c1);
c2 = ;  // -13.128783081462-15.200784463068i

See Also

ImLn, ImLog10, ImLog2