3.5.2.3.5 ImCos

Description

Calculate the cosine value for a complex.

ImCos(C) = \frac{e^{iC}+e^{-iC}}{2}

or

ImCos \left (x+iy \right ) = cos(x)cosh(y)-i*sin(x)sinh(y)

where C is a complex, and i=\sqrt{-1}.

Syntax

complex ImCos(complex cX)

Parameters

cX

The complex number.

Return

Return the cosine value for the specified complex.

Example

imCos(3+4i) = ;  // -27.034945603074-3.8511533348118i
 
complex c1 = 1+1i;
complex c2;
c2 = imCos(c1);
c2 = ;  // 0.83373002513115-0.98889770576287i

See Also

ImSin