Contact

IMDIV Function (Gnumeric)

Engineering Intermediate Gnumeric

Learn the IMDIV function in Gnumeric: Returns the quotient of two complex numbers.

Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in Gnumeric. How formula examples are checked

Version-specific error distinction: The online 1.12 manual describes malformed complex inputs as #VALUE!. The official 1.12.62 source instead returns #NUM! when parsing a malformed complex string; other unsupported value types can still return #VALUE!. Any #VALUE! expectations below are the manual’s older documented rule, not verified 1.12.62 output. No native error test was performed.

Purpose and exact argument order

IMDIV divides the first complex-number input by the second: mathematically z1 / z2. It is useful for a ratio of complex measurements, normalization against a reference, impedance calculations, and checking relative amplitude and phase [1, IMDIV]. Its argument order is consequential: IMDIV(A2,B2) is generally not the same as IMDIV(B2,A2).

=IMDIV(z1,z2)
Position Argument Required Type and role Default
1 z1 Yes Dividend/numerator, a valid complex number. None.
2 z2 Yes Divisor/denominator, a valid complex number. None.

The official manual lists two arguments and documents #VALUE! if either is not a valid complex number [1, IMDIV]. The complex number may be produced by COMPLEX(x,y) or represented as notation such as "3+4i". There is no optional parameter, default denominator, or variable-length argument list in the documented signature.

Reproduce the first worksheet example

Enter two complex measurements as explicit coefficients. This avoids assuming that ordinary numeric cell arithmetic directly handles complex text.

Cell Enter Meaning
A1 Numerator real Heading
B1 Numerator imaginary Heading
C1 Denominator real Heading
D1 Denominator imaginary Heading
A2 3 z1 real component
B2 4 z1 imaginary component
C2 1 z2 real component
D2 -2 z2 imaginary component
E2 =COMPLEX(A2,B2) z1 = 3+4i
F2 =COMPLEX(C2,D2) z2 = 1-2i
G2 =IMDIV(E2,F2) Quotient

Independent arithmetic using a conjugate gives (3+4i)/(1-2i) = ((3+4i)(1+2i))/(1²+2²) = (-5+10i)/5 = -1+2i. Therefore G2 is expected to represent -1+2i, subject to Gnumeric’s display formatting. These are mathematical calculations; no Gnumeric execution is claimed. The specific quotient signature comes from the Gnumeric manual [1, IMDIV].

Smaller formula examples

Formula Independently expected result Check
=IMDIV("3+4i","1-2i") -1+2i General complex denominator.
=IMDIV("6+8i",2) 3+4i Real denominator representation; verify numeric scalar coercion natively.
=IMDIV(COMPLEX(0,2),COMPLEX(0,1)) 2 Imaginary units cancel.
=IMDIV(COMPLEX(3,4),COMPLEX(3,-4)) -0.28+0.96i Unit-magnitude phase ratio.
=IMDIV("invalid","1+2i") #VALUE! documented Invalid numerator [1].

The second row’s algebraic answer is unambiguous, but whether a bare numeric 2 is accepted as a complex argument for a particular build should be verified before calling it an observed application output. Use COMPLEX(2,0) to make this test independent of implicit conversion.

Applied example: measurement/reference normalization

Suppose a reference sample is 3-4i and a new sample is 3+4i. Put =COMPLEX(3,4) in A2 and =COMPLEX(3,-4) in B2, then =IMDIV(A2,B2) in C2. The independently calculated ratio is -0.28+0.96i. Its magnitude is 1 because numerator and denominator both have magnitude 5; =IMABS(C2) can check this relationship [1, IMABS]. Its phase is approximately 1.854590436... radians by independent atan2(0.96,-0.28) arithmetic; =IMARGUMENT(C2) is documented to return such a phase in radians [1, IMARGUMENT].

This separates relative amplitude from relative phase, helping distinguish a sign or rotation change from a change in size. Do not use a fixed-size ratio as proof of physical calibration without a real measurement model.

Advanced use: reconstruct the numerator to audit the division

After calculating G2 = IMDIV(E2,F2), put =IMPRODUCT(G2,F2) in H2. Algebraically this should recover 3+4i [1, IMPRODUCT]. Compare with E2 by applying IMSUB(H2,E2) and IMABS to the difference; the mathematical residual is 0, but real floating-point implementations can show small errors. A robust report would use a tolerance rather than demand identical strings.

For batches of observations, copy the paired numerator and denominator formula down the worksheet while maintaining the same row alignment. Check denominators before computing ratios; complex zero means both components are zero. IMABS(F2)=0 is a useful inspection formula, although precise error propagation for zero division has not been established by the cited IMDIV manual text.

Errors, edge cases and safe troubleshooting

Situation What is established / what to do
#VALUE! with malformed numerator or denominator Specifically documented for an invalid complex input [1, IMDIV].
Complex denominator is zero Division is mathematically undefined. The online manual entry does not specify the error label, but the official 1.12.62 callback explicitly returns #DIV/0! for a zero divisor. This is source evidence; it was not executed here.
Result seems inverted Check z1/z2 order before checking math.
Tiny unexpected real or imaginary residue Complex division uses floating-point arithmetic; use tolerance checks and IMABS(IMSUB(...)).
i versus j text Prefer consistent values from COMPLEX(real,imaginary,"i") or "j"; mixed suffix acceptance is a pending runtime test.
Blank cells or text that resembles a number Specific coercion is not established by the cited entry; construct numeric inputs and verify.
Different punctuation causes formula rejection Follow Gnumeric’s function separator and locale settings on the actual installation [5,6].

Version, software, locale and compatibility boundaries

This is a guide to Gnumeric, based on the Gnumeric 1.12 manual [1]. Gnumeric’s own function catalogue [2] lists IMDIV as Complete / Basic: the first term reports catalogue implementation classification; the second is the project’s test-suite category. Neither is a record of running the examples in this tutorial. The 1.12.62 release announcement [3] mentions improved compatibility for complex-number functions generally, but does not assert this tutorial’s examples were tested, nor identify every supported older release.

The official Gnumeric manual explicitly labels this function Microsoft Excel compatible [1, IMDIV]. This means only a declared function-level compatibility category; precise division-by-zero results, text coercion, i/j formatting and file interoperability remain unverified; it is not proof of byte-for-byte identical imports, worksheet display, coercion of blanks, text-number conversion, or localized formula entry in Microsoft Excel. Do not infer compatibility from another spreadsheet’s identically named function.

The formulas here use Gnumeric’s English-language function names, a period for the decimal separator, and commas between arguments. The Gnumeric 1.12 manual illustrates commas as function-argument separators [5]; its locale documentation explains that numeric conventions are influenced by system locale [6]. Confirm the actual installation’s formula editor and locale before pasting examples or changing separators. Gnumeric’s download guidance describes Linux/BSD distributor packages as the usual installation route and says the project does not currently distribute Windows binaries [4]. This does not prove a function works on every platform or build.

A complex number such as "3+4i" is passed as text notation to the complex-function family. A different unit suffix (i versus j), case, spaces, Unicode minus signs, explicit empty strings, missing cells, and errors are possible parsing or coercion edge cases; the official function reference is not a complete acceptance matrix. This page does not claim those cases were executed. Use COMPLEX(real,imaginary) to construct consistently formed values when possible [1, COMPLEX].

Official references and claim provenance — checked 2026-10-13

  1. Gnumeric 1.12: Complex-function reference — canonical signature, specific argument meanings and documented errors; function sections noted inline above.
  2. Gnumeric function catalogue — presence, implementation label and upstream test-suite classification; not independent execution of this guide.
  3. Gnumeric 1.12.62 release announcement — announced release context and general complex-number compatibility improvements.
  4. Gnumeric official download and platform guidance — distribution routes and lack of currently distributed Windows binaries.
  5. Gnumeric 1.12: types of cell elements / using functions — documented function-form and comma argument separator for the English examples.
  6. Gnumeric 1.12: languages and locales — locale behaviour and numeric formatting context.

Evidence boundary: The examples were independently calculated and checked against official documentation and the Gnumeric 1.12.62 source. Native execution, locale checks and file round-trips were not performed.