Contact

IMCOS Function (Calligra Sheets)

Engineering Intermediate Calligra Sheets

Evaluate complex cosine in Calligra Sheets using radians, with hyperbolic component identities, sign checks and finite-precision zero examples.

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: =IMCOS(COMPLEX(3;4)) gives (-27.034945603074,-3.851153334812) 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 IMCOS returns

IMCOS returns complex cosine. For z = a+bi, cos(z) = cos(a)cosh(b) − i sin(a)sinh(b). Its magnitude can exceed 1 when the imaginary component is nonzero. It is a different operation from applying real COS separately to two components. Function help.

Syntax and arguments

=IMCOS(complexValue)

Supply exactly one complex value. The examples construct values with COMPLEX(real;imaginary); accepted strings and purely real numeric inputs pass through the same complex converter. 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
=IMCOS(COMPLEX(3;4)) (-27.034945603074,-3.851153334812)
=IMCOS(COMPLEX(3;-4)) (-27.034945603074,3.851153334812)
=IMCOS(COMPLEX(-3;4)) (-27.034945603074,3.851153334812)
=IMCOS(COMPLEX(-3;-4)) (-27.034945603074,-3.851153334812)
=IMCOS(COMPLEX(1;0)) (0.540302305868,0)
=IMCOS(COMPLEX(0;1)) (1.543080634815,0)
=IMCOS(COMPLEX(-1;0)) (0.540302305868,0)
=IMCOS(COMPLEX(0.5;0.25)) (0.90515015056,-0.121108796044)

Practical worksheet

At z = i, cosine is the real value cosh(1), approximately 1.543080634815. The table therefore shows no imaginary component for that input. Compare it with cos(1), approximately 0.540302305868, to see why replacing an imaginary argument with a real one changes the problem.

A worksheet with real and imaginary inputs in A2:B2 can use =IMCOS(COMPLEX(A2;B2)). Keep the input parts and radian convention visible when interpreting a resulting sign.

Advanced interpretation and checks

Cosine is even: cos(−z)=cos(z). The executed difference between IMCOS(z) and IMCOS(−z), with z = 0.5+0.25i, returned (0,0). Both negation and subtraction used the complex functions, so neither step depends on formatted text arithmetic.

The companion identity cos²(z)+sin²(z)=1 remains valid for complex inputs. A large cosine magnitude can be balanced by a complex sine-square term; the familiar real bound of 1 does not apply to the components individually.

The exact advanced-check formula was:

=IMSUB(IMCOS(COMPLEX(0.5;0.25));IMCOS(IMSUB(0;COMPLEX(0.5;0.25))))

Input boundaries and cautions

Invalid and empty text converted to zero in the tested engine path, so IMCOS(“abc”) returned (1,0). That plausible number does not establish that the input parsed correctly.

The exact mathematical value cos(π/2) is zero. IMCOS(PI()/2) instead had a real component near 6.123233995737E−17 because the represented angle is slightly displaced from π/2. Retain the input precision and use a suitable tolerance in checks.

Formula Engine result
=IMCOS("3+4i") (-27.034945603074,-3.851153334812)
=IMCOS("3+4j") (-27.034945603074,-3.851153334812)
=IMCOS("abc") (1,0)
=IMCOS("") (1,0)
=IMCOS(TRUE()) (0.540302305868,0)
=IMCOS(0) (1,0)
=IMCOS() #VALUE!
=IMCOS(1;2) #VALUE!
=IMCOS(PI()/2) (6.123233995737E-17,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.