# power

Version:

Raises input elements to powers that you specify. power(a,b) is equivalent to a.^b.

## Syntax

c = power(a, b)

## a

Elements you want to raise to a power. a is a scalar or an array of any dimension.

## b

Powers to which you want to raise the elements in a. b is a scalar or an array of the same size as a.

## c

Values of a.^b. c is a scalar or an array of any dimension. If a is negative and b is not integer, c is complex.

## Different Input Types

If one input is an integer type, the other input must be the same integer type or a double scalar type.

## Differences between Power and Powerofreal

Powerofreal is equivalent to power except that powerofreal generates an error if the result is complex.
A = [1+3i, 5.6; -2.3, 8-i]
B = 3
C = power(A, B)

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported