IMCONJUGATE Function (OpenOffice Calc)
Return complex conjugates in Apache OpenOffice, preserving real parts and tested i/j suffixes while rejecting malformed complex text.
Verification status: Eight reference formulas and 3 diagnostic cases were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816, using XLSX import and GUI hard recalculation. Saved formula identities and typed results were checked. How formula examples are checked
Quick answer: =IMCONJUGATE("3+4i") returned 3-4i in the tested Apache OpenOffice 4.1.16 build.
Availability and version history
- Introduced: First release not established; documented by OpenOffice.org 3.3.
- Supported in: Apache OpenOffice 4.1.16; this identifies a verified release, not a final supported version.
- Scope: Desktop Calc with its Analysis add-in, English function names and semicolon-separated formulas.
- Checked: October 14, 2026. Eight reference formulas and the listed diagnostics were recalculated after XLSX import in 4.1.16 on Linux x86-64, Build 9816. Source and independent reference calculations were also checked.
What IMCONJUGATE returns
IMCONJUGATE returns a text representation of the complex conjugate: a+bi becomes a−bi. It changes the sign of the imaginary component and leaves the real component unchanged. It is not negation of the whole complex number. Release entry.
Syntax and arguments
=IMCONJUGATE(ComplexNumber)
One complex-number argument is required. The parsed input can use lowercase i or j, and the formatter retains the selected suffix in the tested cases. A pure real number is its own conjugate. Invalid text is rejected by the constructor rather than converted into a zero value.
Reproducible examples
The native column records the saved 4.1.16 results. For text-returning functions the strings are compared exactly. Ordinary numeric values are rounded to twelve decimal places, with scientific notation for tiny values. Stored values and display text were inspected separately; a twelve-decimal cell display can hide a tiny nonzero number.
| Formula | Native 4.1.16 result | Independent reference |
|---|---|---|
=IMCONJUGATE("3+4i") |
3-4i |
3-4i |
=IMCONJUGATE("3-4i") |
3+4i |
3+4i |
=IMCONJUGATE("-3+4j") |
-3-4j |
-3-4j |
=IMCONJUGATE("-3-4j") |
-3+4j |
-3+4j |
=IMCONJUGATE("i") |
-i |
-i |
=IMCONJUGATE("-i") |
i |
i |
=IMCONJUGATE("5") |
5 |
5 |
=IMCONJUGATE("0") |
0 |
0 |
Practical worksheet
=IMCONJUGATE("3+4i") returns 3-4i, while =IMCONJUGATE("3-4i") returns 3+4i. For -3+4j, the result is -3-4j: the real sign stays negative. Keeping both original components visible makes this distinction easy to check.
Use COMPLEX to construct a value from validated numeric real and imaginary columns before conjugating it. This avoids relying on a guessed text pattern from an import. The literal strings in the table are the directly tested inputs.
Advanced interpretation and checks
Conjugating twice recovers the original complex value mathematically. A conjugate has the same magnitude, and z×conjugate(z)=|z|². For 3+4i, the product is the real value 25. These identities are independent checks of the sign change.
Conjugation distributes over addition and multiplication. It also changes the phase sign away from the branch convention at the negative real axis. A pure real value stays unchanged, while i becomes −i and −i becomes i.
The returned value is text formatted for the complex-function family. Use IMPRODUCT or other suitable IM functions for later complex arithmetic instead of assuming a text cell behaves as an ordinary real numeric cell.
Boundaries and troubleshooting
Formatting can omit zero components and a unit imaginary coefficient, so the printed string need not have a fixed a+bi shape. A return value 5 is a valid representation of the conjugate of a pure real input.
Malformed text, an empty string and unsupported uppercase suffixes are separately observed below. A successful textual appearance is not proof that every locale or imported format will parse the same way. These examples do not establish extreme-value serialization behavior.
These additional formulas were recalculated through the same import path. Error displays are retained as errors, even when an ODS numeric attribute stores zero.
| Formula | Observed result or error |
|---|---|
=IMCONJUGATE("abc") |
Err:502 |
=IMCONJUGATE("") |
Err:502 |
=IMCONJUGATE("3+4I") |
Err:502 |
Other spreadsheet implementations
The IMCONJUGATE guide for Calligra Sheets documents that product’s own syntax and tested behavior. A shared function name does not guarantee the same argument conversion, text parsing, branch or precision rules.
Official evidence and checking scope
- Function-specific release entry
- Numeric algorithm or complex parser/formatter
- Strict complex-string parser
The saved ODS retained every tested formula identity. A deliberately stale SUM cache changed from 999999 to 3, and an uncached SUM returned 7 after hard recalculation. Native evidence covers the eight reference formulas and listed diagnostics only. Other explanatory compositions are independent mathematical checks; other releases, locales and extreme-value behavior were not established by this run.