Formualizer Docs

IMDIV

Returns the quotient of two complex numbers.

Divides the first complex value by the second.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=IMDIV(inumber1, inumber2)

Arguments

ArgumentTypeRequiredDefault
inumber1anyRequired—
inumber2anyRequired—

Return type

Can return text.

How it works

Dividing z by w is equivalent to multiplying z by the conjugate of w and dividing by |w|². A zero denominator is undefined.

Differences from Excel

The raw Formualizer text can contain more significant digits than Excel’s complex-number text. The examples round each coefficient to 15 significant digits for display.

Remarks

  • Inputs are coerced to complex-number text before parsing.

Error cases

  • Returns #DIV/0! when the divisor is 0+0i.
  • Invalid complex text returns #NUM!.

Examples

Divide by a complex value with both coefficients present.

Formula =IMDIV("3+4i","1+i")

Expected result 3.5+0.5i

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Use a purely real divisor with a j-suffixed numerator.

Formula =IMDIV("3+4j","2")

Expected result 1.5+2j

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Divide a zero numerator by a nonzero complex number.

Formula =IMDIV("0","1+i")

Expected result 0

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

A zero complex divisor is undefined.

Formula =IMDIV("3+4i","0")

Expected result #DIV/0!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Divide complex numbers

Formula =IMDIV("3+4i","1-i")

Expected result -0.5+3.5i

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Division by zero complex

Formula =IMDIV("2+i","0")

Expected result #DIV/0!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

When does IMDIV return #DIV/0!?

If the divisor is 0+0i (denominator magnitude near zero), division is undefined and returns #DIV/0!.

Implementation

Engine source

On this page