Power
Raises a number to a power.
Node id math/power
The Power node outputs a to the power b (aᵇ): 2 to the power 3 is 8.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| a | number | 0 | |
| b | number | 1 |
Outputs
| Name | Type | Notes |
|---|---|---|
| result | number |
Behaviour
- Defaults.
adefaults to 0 andbto 1, so with onlyaset the result isa. - Roots. A fractional power is a root:
b= 0.5 is the square root, like Square Root. - Invalid math. A negative
awith a fractionalbgives NaN, and 0 to a negative power givesInfinity, with no error.
Related nodes
- Square Root: the power 0.5.
- Log: finds the power, given the result.
- E: with Power, the exponential function.