POWER
Raises the first input to the power of the second input.
Syntax
POWER(X, P)
Arguments
X
Type: numeric
A numeric value.
P
Type: numeric
A numeric value.
Returns
Type: double
X raised to the power of P.
Examples
| X | P | Output |
|---|---|---|
| 1 | 1 | 1.0 |
| 2 | 2 | 4.0 |
| -1 | 2 | 1.0 |
| -2 | -2 | 0.25 |
| 0.5 | 0.5 | 0.7071067811865476 |
| 0.5 | 0 | 1.0 |
| 0 | 0 | 1.0 |