Documentation/Calc Functions/IMCOT

Function name:
IMCOT

Category:
Add-in

Summary:
Calculates the trigonometric cotangent of a complex number. The cotangent is the reciprocal of the tangent.

Syntax:
IMCOT(ComplexNumber)

Returns:
Returns a text string giving the complex number that is the cotangent of the complex number passed as argument.

Arguments:
ComplexNumber is a string (in quotation marks) representing a complex number in the form a+bi or a+bj, or a reference to a cell containing that string, whose cotangent is to be determined. a and b are real numbers.
 * If ComplexNumber does not have an imaginary part (b equal to 0), the real part can be passed to IMCOT as a number rather than a string.
 * If ComplexNumber is not a valid complex number, IMCOT reports an invalid argument error (Err:502).

Details specific to IMCOT function
For a complex number of the form a+bi, IMCOT implements the following equation: However, IMCOT determines if b=0 and in this case simply returns 1/tan(a).

Related LibreOffice functions:
IMCOS

IMCSC

IMSEC

IMSIN

IMTAN

ODF standard:
Section 6.8.9, part 2

Equivalent Excel functions:
IMCOT