Zero raised by zero
joerg.kunze
0^0
yields 1. 0^0
should be equal to cmplx(0,0)
because 0 = 0 + i*0, where i = cmplx(0,1)
. But print cmplx(0,0)^0
yields (Nan,Nan)
. I think, that is wrong. Is there any setting or pragma, that helps to get the correct result cmplx(0,0)^0
= (0 + i*0)^0 = 1?Best regards,
Joerg
HJ
February 10, 2018 at 01:29 am - Permalink
where pown(x,y) is x^y for y being an integral number. So this does look correct in Igor.
@joerg.kunze: This does look like a bug indeed. I would contact WM support.
February 13, 2018 at 07:08 am - Permalink
The value of 0^0 is typically argued based on a limit and required continuity. The same argument does not apply in the complex case where the limit depends on the path (and branch) so returning a NaN is, IMO prudent.
A.G.
WaveMetrics, Inc.
February 13, 2018 at 12:07 pm - Permalink