Formualizer Docs

POWER

Raises a base number to a specified power.

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

=POWER(number, power)

Arguments

ArgumentTypeRequiredDefault
numbernumberRequired—
powernumberRequired—

Remarks

  • Equivalent to exponentiation (base^exponent).
  • Errors are propagated.

Error cases

  • Negative bases with fractional exponents return #NUM!.

Examples

Raise a positive base to a positive integer power.

Formula =POWER(2,5)

Expected result 32

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 gives the reciprocal of the positive power.

Formula =POWER(2,-5)

Expected result 0.03125

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 base raised to zero gives one.

Formula =POWER(2,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?.

A negative base raised to this fractional exponent has no real value.

Formula =POWER(-2,0.5)

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

Integer exponent

Formula =POWER(2,10)

Expected result 1024

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

Fractional exponent

Formula =POWER(9,0.5)

Expected result 3

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

Why can POWER return #NUM! for negative bases?

Negative bases with fractional exponents are rejected to avoid complex-number results.

Implementation

Engine source

On this page