Function pow()
performs power operation based on the given base and exponent.
Arguments:
- Base <number>
- Exponent <number>
Returns:
- Exponentiation <number>
Common Usage
Example: Direct calculate
uncollect [3,4] as a
uncollect [1,2] as b
return table(a, b, pow(a,b))
| a | b | pow(a,b) |
|---|---|----------|
| 3 | 1 | 3 |
| 4 | 2 | 16 |
Example: Multiply and calculate
uncollect [3,4] as a
uncollect [1,2] as b
with pow(a,b) as c
return table(a, b, c)
| a | b | c |
|---|---|----|
| 3 | 1 | 3 |
| 3 | 2 | 9 |
| 4 | 1 | 4 |
| 4 | 2 | 16 |