InvalidOperationException | x is signaling NaN |
DivisionByZeroException | x = ±0.0 and n < 0.0 |
OverflowException | result is too big to be represented or n = -1 |
UnderflowException | result is too small to be represented or n = -1 |
InexactException | result is inexact |
x | y | root(x, n) |
---|---|---|
sNaN | any | NaN |
any | 0 | NaN |
any | -1 | NaN |
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 x1/n, where n is an integer