Contact

IMCOT Function (Calligra Sheets)

Engineering Intermediate Calligra Sheets

Calculate complex cotangent in Calligra Sheets. Check sine-denominator poles, reciprocal identities and nonfinite engine results at zero.

Verification status: 18 selected formulas were executed through the Calligra Sheets 25.04.2 calculation engine library. Complex outputs are reported as components, not GUI-cell display. Version 26.08.2 was source-checked only. How formula examples are checked

Quick answer: =IMCOT(COMPLEX(3;4)) gives (-0.000187587738,-1.000644392472) in the tested Calligra calculation engine. The pair gives the real and imaginary components, not worksheet display text.

Availability and version history

  • Introduced: First release not established; the name is present in Calligra 2.4.0 source.
  • Supported in: Calligra Sheets 26.08.2, with no retirement established.
  • Scope: Desktop Sheets with the Engineering module. Examples use English semicolon-separated formulas.
  • Checked: October 14, 2026. Formulas were executed through the official 25.04.2 engine library and checked against source and independent mathematics. This is not GUI-cell or workbook-import evidence; 26.08.2 was source-checked, not executed.

What IMCOT returns

IMCOT returns cot(z) = cos(z)/sin(z). It is the reciprocal of tangent where both expressions are defined, not an inverse-angle arctangent. Its mathematical poles occur at real integer multiples of π. Function help.

Syntax and arguments

=IMCOT(complexValue)

Provide exactly one complex value. Both components can be constructed explicitly with COMPLEX(real;imaginary). Numeric values are purely real, and the radian convention applies. Registration and implementation, with versioned help.

Reproducible engine examples

Results are shown as (real,imaginary) component pairs, rounded to twelve decimal places, not a literal cell format. Tiny or very large values use thirteen significant digits in scientific notation. A component rounded to zero is shown as 0; the stored value may still contain a tiny residual or signed zero. NaN means not-a-number; infinity and NaN are not finite results.

Formula Engine result
=IMCOT(COMPLEX(3;4)) (-0.000187587738,-1.000644392472)
=IMCOT(COMPLEX(3;-4)) (-0.000187587738,1.000644392472)
=IMCOT(COMPLEX(-3;4)) (0.000187587738,-1.000644392472)
=IMCOT(COMPLEX(-3;-4)) (0.000187587738,1.000644392472)
=IMCOT(COMPLEX(1;0)) (0.642092615934,0)
=IMCOT(COMPLEX(0;1)) (0,-1.313035285499)
=IMCOT(COMPLEX(-1;0)) (-0.642092615934,0)
=IMCOT(COMPLEX(0.5;0.25)) (1.432721075388,-0.887237040784)

Practical worksheet

For z = i, cot(i) = −i coth(1), approximately 0−1.313035285499i. Compare the sign with tan(i), which is positive imaginary: the reciprocal of a purely positive imaginary number is negative imaginary.

For a worksheet with numeric components in A2:B2, use =IMCOT(COMPLEX(A2;B2)). Retain the divisor-related domain restriction when the inputs come from another calculation.

Advanced interpretation and checks

The executed product IMCOT(z)×IMTAN(z), formed with IMPRODUCT at z = 0.5+0.25i, returned (1,0). The reciprocal identity only applies where both functions are defined; it cannot resolve a pole by multiplying an undefined value by zero.

Using sin(a+bi) and cos(a+bi), the quotient can be written [sin(2a)−i sinh(2b)]/[cosh(2b)−cos(2a)] when the denominator is nonzero. This makes the sign of the imaginary part and the zero-denominator restriction explicit.

The exact advanced-check formula was:

=IMPRODUCT(IMCOT(COMPLEX(0.5;0.25));IMTAN(COMPLEX(0.5;0.25)))

Input boundaries and cautions

At exact numeric zero, the tested engine returned (+Infinity,NaN) with its error flag unset. This is not a finite complex result and is not evidence of the worksheet’s displayed error text. The source divides cosine by sine without a worksheet-specific pole guard.

Invalid and empty text also became zero, reaching the same nonfinite result. IMCOT(PI()) was a large finite negative value because rounded PI() is not exact π. Validate both input parsing and denominator size.

Formula Engine result
=IMCOT("3+4i") (-0.000187587738,-1.000644392472)
=IMCOT("3+4j") (-0.000187587738,-1.000644392472)
=IMCOT("abc") (+Infinity,NaN)
=IMCOT("") (+Infinity,NaN)
=IMCOT(TRUE()) (0.642092615934,0)
=IMCOT(0) (+Infinity,NaN)
=IMCOT() #VALUE!
=IMCOT(1;2) #VALUE!
=IMCOT(PI()) (-8.165619676598E+15,0)

Conversion evidence

The complex conversion helper explains the text and Boolean cases above. The inspected Engineering module and complex converter are byte-identical between 25.04.2 and 26.08.2. That source comparison does not establish every locale, import path or extreme-value case.

Use COMPLEX to construct values from numeric components, IMABS for magnitude, and IMARGUMENT for principal phase.