Formualizer Docs

IMPOWER

Raises a complex number to a real power.

Uses polar form and returns the principal-value result as complex text.

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

=IMPOWER(inumber, number)

Arguments

ArgumentTypeRequiredDefault
inumberanyRequired—
numberanyRequired—

Return type

Can return text.

How it works

For nonzero z and real p, the principal power is exp(p ln(z)), using the principal complex logarithm. Zero to a negative power 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

  • inumber is coerced to complex-number text; n is numerically coerced.

Error cases

  • Returns #NUM! for undefined zero-power cases such as 0^0 or 0^-1.
  • Invalid complex text returns #NUM!.

Examples

Square a complex number with nonzero real and imaginary parts.

Formula =IMPOWER("3+4i",2)

Expected result -7+24i

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 negative exponent asks for the reciprocal.

Formula =IMPOWER("3+4j",-1)

Expected result 0.12-0.16j

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 nonzero complex base raised to zero gives the multiplicative identity.

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

Expected result 1

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?.

The base must be a valid complex value.

Formula =IMPOWER("invalid",2)

Expected result #NUM!

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?.

Square a complex value

Formula =IMPOWER("1+i",2)

Expected result 2i

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?.

Negative real exponent

Formula =IMPOWER("2",-1)

Expected result 0.5

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

How does IMPOWER handle zero base with non-positive exponent?

0^0 and 0 raised to a negative exponent are treated as undefined and return #NUM!.

Implementation

Engine source

On this page