InvalidOperationException | x is signaling NaN |
DivisionByZeroException | x = ±0.0 and n < 0 |
OverflowException | result is too big to be represented |
UnderflowException | result is too small to be represented |
InexactException | result is inexact |
x | n | pow(x, n) |
---|---|---|
sNaN | any | NaN |
any | 0 | +1.0 |
NaN | any | NaN |
±∞ | any | ±∞ |
±0.0 | odd n < 0 | ±∞ |
±0.0 | even n < 0 | +∞ |
±0.0 | odd n > 0 | ±0.0 |
±0.0 | even n > 0 | +0.0 |
Compute the value of xn, where n is integral