commons-math icon indicating copy to clipboard operation
commons-math copied to clipboard

MATH-1397: Complex.ZERO.pow(2.0) is NaN

Open RayDeCampo opened this issue 9 years ago • 1 comments

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.

RayDeCampo avatar Jan 02 '17 16:01 RayDeCampo

Coverage Status

Coverage increased (+0.009%) to 90.182% when pulling b47f9b2e6c2bbe11e57069837d038291daf1a39b on RayDeCampo:bug-MATH-1397 into 657b1b49da5ea1593dd7f950eae99a88a8ada87a on apache:master.

coveralls avatar Jan 02 '17 16:01 coveralls