commons-math
commons-math copied to clipboard
MATH-1397: Complex.ZERO.pow(2.0) is NaN
Complex number 0 raised to a (real) positive number should be 0 and otherwise NaN.
Note I did have to change existing tests which asserted that 0^1 is NaN when computed by either varianr of Complex.pow(). I did some spelunking in the repository to find the origin of those tests but there were not any illuminating comments.