Description:
Perform exponentiation or find the nth root of a number.
Syntax:
power(x, n)
Note:
The function computes number x raised to the nth power, or takes an nth root of x; if parameter n's value is a reciprocal (1/n), the function finds the root.
Parameter:
x |
Base |
n |
Power; default is 2 |
Return value:
Numeric type
Example:
power(2,4) |
16.0 |
power(16,1/4) |
2.0 |
power(5) |
25 |
Related functions: