POWER (Number, Exponent) POWER (Number; Exponent)

Number

Number Number

The number to be raised.

Exponent

Number Number

The exponent to which the given number should be raised.

Returns

Number 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 ^ 2
2 ^ 2

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

fxEngine Shell Want this in your own terminal? A standalone version is coming. Get notified.
Loading fxEngine Shell