Purpose
Return value
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.
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.