> > This bit: > > : This is not correct. Obviously, 0/i is the same as 0/1 > : which is 0. Thus atan2(0,i) == atan2(0,1) == atan(0) == 0 > > seems to be incorrect... if one believes the Mathematica definition > atan2(0, i) is pi/2, not zero.
Ahem, sorry... it seems that Mathematica's ArcTan is ArcTan[x, y] while atan2 is atan2(y, x)... so the zero is right, after all. > Another good reference on these matters, MATLAB ignores the complex > parts of atan2() arguments. This still is true. > >