Related Function:

The IMCOS function returns the cosine of a complex number in x + yi or x + yj text format.

Syntax

=IMCOS(inumber)

Arguments

Argument Description
inumber A complex number for which you want the cosine

Note: Use the COMPLEX function to convert real and imaginary coefficients into a complex number.

Examples

  A B C D
1 Data Formula Result Notes
2 3+4i =IMCOS(“A2”) -27.0349456030742-3.85115333481178i Cosine of 3+4i
3   =IMCOS(“3+4i”) -27.0349456030742-3.85115333481178i  
4   =IMCOS(2-i) -0.64214812471552+1.06860742138278i  
5   =IMCOS(COMPLEX(4,1)) -1.00862481342516+0.889395195838485i  

Common Function Error(s)

Problem What went wrong
#VALUE! Occurs if the supplied inumber argument is a logical value
#NUM! Occurs if the supplied inumber argument is not recognized as a complex number

The cosine of a complex number is calculated as:

    \[ cos(x+yi) = cos(x)\ cosh(y) - sin(x)\ sinh(y)i  \]

See Wikipedia for more information on complex numbers.