Author: Oscar Cronquist Article last updated on November 03, 2022

How to use the IMCOT function

The IMCOT function calculates the cotangent of a complex number in x + yi or x + yj text format.

The letter j is used in electrical engineering to distinguish between the imaginary value and the electric current.

The cotangent of a complex number is calculated like this:
cot(x + yi) = (cosh(x)*cosh(y) - isin(x)*sinh(y)) / (sin(x)*cosh(y) + icos(x)*sinh(y))

1. IMCOT Function Syntax

IMCOT(inumber)

Back to top

2. IMCOT Function Arguments

inumber Required. A complex number in x+yi or x+yj text format.

Back to top

3. IMCOT function example

How to use the IMCOT function

The image above demonstrates a formula in cell D3 that calculates the cotangent of a complex number specified in cell C3.

Formula in cell D3:

=IMCOT(C3)

3.1 Explaining formula

Step 1 - Populate arguments

IMCOT(inumber)

becomes

IMCOT(C3)

Step 2 - Evaluate the IMCOT function

IMCOT(C3)

becomes

IMCOT("2+2i")

and returns

-0.0270655117325545-0.97596873511731i

Back to top