POWER function

POWER(number, exponent) POWER(number; exponent)

number — Number or { Number }

The number to be raised.

exponent — Number or { Number }

The exponent to which the given number should be raised.

Returns — Number or { Number }

The result.

Raises a number to the power of another number. POWER works identically to the ^ operator, meaning that POWER(2, 2)POWER(2; 2) and 2^22^2 both return 4.

Examples

POWER(2, 2)POWER(2; 2)

Returns 2 raised to the power of 2, which equals 4.

POWER(2, { 2, 4, 8 })POWER(2; { 2; 4; 8 })

Returns 2 raised to the power of 2, 4 and 8, in the form of the array { 4, 16, 256 }{ 4; 16; 256 }.

POWER({ 2, 4, 8 }, 2)POWER({ 2; 4; 8 }; 2)

Returns 2, 4 and 8 raised to the power of 2, in the form of the array { 4, 16, 64 }{ 4; 16; 64 }.

POWER({ 2, 4, 8 }, { 2, 4, 8 })POWER({ 2; 4; 8 }; { 2; 4; 8 })

Returns 2 raised to the power of 2, 4 raised to the power of 4 and 8 raised to the power of 8, in the form of the array { 4, 256, 16777216 }{ 4; 256; 16777216 }.

2 ^ 22 ^ 2

Returns 2 raised to the power of 2, which equals 4.