Summary

The Excel IMCOT function returns the cotangent of a complex number.

Purpose 

Get cotangent of complex number.

Return value 

The cotangent of the complex number.

Syntax

=IMCOT(complex_num)
  • complex_num - The complex number in the form "x+yi".

How to use 

The Excel IMCOT function returns the cotangent of a complex number. For example, given "3+4i" as input, the function returns "-0.000187588-1.000644392i" as output.

=IMCOT("3+4i") // returns -0.000187588-1.000644392i

Explanation

In math, the cotangent of a complex number is defined using the complex sine and cosine functions.

Definition of the complex cotangent function.

In Excel, the cotangent of a complex number is equivalent to the following formula.

=IMDIV(IMCOS(z),IMSIN(z)) // equivalent to IMCOT(z)

The cotangent is the reciprocal of the complex tangent function.

Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.