Excel IMCOS Function
The IMCOS function returns the cosine value of a given complex number in x + yi or x + yj text format.
The IMCOS function returns a complex number as text.
- inumber can be supplied as any of the following:
- A real number whose imaginary part is 0, e.g., 1 is a complex number 1+0i; Or a purely imaginary number whose real part is 0, e.g., i is a complex number 0 + 1i;
- A cell reference that refers to a complex number;
- A complex number enclosed in double quotation marks.
- inumber can be returned by the COMPLEX function which converts real and imaginary coefficients into a complex number.
- IMCOS will return the #NUM! error if inumber is not recognized as a complex number that has lowercase i or j (iota).
- IMCOS will return the #VALUE! error if inumber is a logical value.
- The cosine of a complex number is:
cos(x + yi) = cos(x)cosh(y) – sin(x)sinh(y)i
cos(x + yj) = cos(x)cosh(y) – sin(x)sinh(y)j
To calculate the cosine of the complex numbers listed in the below table, please copy or enter the formula below in the top cell, press Enter to get the result, and then drag the fill handle (at the lower right corner of the result cell) down to apply the formula to below cells.
Also, you can type the actual complex number in the formula as shown below. Make sure the complex number is enclosed with double quotes: