Contact

IMDIV Function (OpenOffice Calc)

Engineering Intermediate OpenOffice Calc

Divide complex values in Apache OpenOffice, using two arguments, a nonzero divisor and reproducible component and error checks.

Verification status: Eight reference formulas and 4 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: =IMDIV("3+4i";"1-2i") returned -1+2i 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 IMDIV returns

IMDIV divides the first complex argument by the second and returns a complex-number string. Division uses both components of the divisor. It is not separate real-part division and imaginary-part division. Release entry.

Syntax and arguments

=IMDIV(Dividend; Divisor)

Exactly two complex arguments are required. The divisor must not be the zero complex number. Each argument is parsed directly, so malformed or empty strings are rejected rather than skipped. Lowercase i and j are recognized imaginary-unit suffixes.

Reproducible examples

The native column records the saved 4.1.16 results. The native strings are retained exactly. Independent component references are rounded to twelve decimal places, with rounded negative zero shown as zero. A tiny stored residual can therefore appear in the native string beside a reference component rounded to zero. Every successful result below is string-typed, including pure real-looking outputs.

Formula Native 4.1.16 string Independent (real, imaginary) reference
=IMDIV("3+4i";"1-2i") -1+2i (-1, 2)
=IMDIV("3-4i";"1+2i") -1-2i (-1, -2)
=IMDIV("-3+4i";"2+i") -0.4+2.2i (-0.4, 2.2)
=IMDIV("-3-4i";"2-i") -0.4-2.2i (-0.4, -2.2)
=IMDIV("1";"2") 0.5 (0.5, 0)
=IMDIV("i";"2i") 0.5 (0.5, 0)
=IMDIV("-1";"i") i (0, 1)
=IMDIV("0.5+0.25i";"0.25-0.5i") i (0, 1)

Practical worksheet

=IMDIV("3+4i";"1-2i") returns -1+2i. Multiplying numerator and denominator by 1+2i gives (−5+10i)/5. A plausible answer obtained by dividing 3 by 1 and 4 by −2 would be wrong.

In a worksheet, keep the dividend in A2 and divisor in B2, then use =IMDIV(A2;B2). This layout illustrates the tested literal formula. Validate a measured divisor before calculating a ratio; a tiny divisor can amplify uncertainty even when it is nonzero.

Advanced interpretation and checks

For z=a+bi and w=c+di≠0, z/w=((ac+bd)+(bc−ad)i)/(c²+d²). Multiplying the result back by w recovers z mathematically. For the first row, (−1+2i)(1−2i)=3+4i.

Magnitudes obey |z/w|=|z|/|w|. Here the quotient magnitude is √5, equal to 5/√5. Its phase is the phase difference, adjusted to the principal representation if an angle is reported separately.

The helper forms c²+d² explicitly. With extremely large or tiny components, that intermediate expression can overflow or underflow even when an algebraically rescaled quotient would be representable. The ordinary reference set does not certify numerical robustness at those extremes.

Boundaries and troubleshooting

Both 1/0 and 0/0 are rejected by the explicit zero-divisor guard. The result is an error rather than a usable string containing infinity or NaN. This is a product-specific contract; do not copy another implementation’s engine-only nonfinite behavior.

Invalid text and empty strings are also errors in the observed path. Keep the error distinct from a numeric zero. The denominator order matters, and swapping the arguments computes a reciprocal only when both values are nonzero.

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
=IMDIV("1";"0") Err:502
=IMDIV("0";"0") Err:502
=IMDIV("abc";2) Err:502
=IMDIV("";2) Err:502

Other spreadsheet implementations

The IMDIV 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

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.