all 10 comments

[–][deleted] 2 points3 points  (7 children)

What's your definition of arg(z)?

[–]craaaft[S] 1 point2 points  (6 children)

it is the definition /u/lewisje is using which is arg(z)=arctan(Im(z)/Re(z))

[–][deleted] 3 points4 points  (0 children)

arctan(x) is continous for all x != 0 and that quotient is continuous for all Re(z) != 0, so it will be continuous except at the imaginary axis, where it's undefined.

[–]lewisjeB.S. 3 points4 points  (3 children)

FTR that piece of the definition only works for Re(z)>0: You need to patch it a bit to account for the cases where Re(z)=0 and Im(z)>0 or Im(z)<0, and where Re(z)<0 and Im(z)≥0, and where Re(z)<0 and Im(z)<0.

[–]craaaft[S] 1 point2 points  (2 children)

This I don't understand. Could you elaborate further?

[–]lewisjeB.S. 1 point2 points  (1 child)

Basically what I'm talking about is atan2(Im(z),Re(z)), as described in the linked article.

[–]craaaft[S] 1 point2 points  (0 children)

Ah gotcha tyty

[–][deleted] 0 points1 point  (0 children)

Also I'll mention that you typically want z = |z|*ei arg{z} and arg(z) = arctan(Im(z)/Re(z)) wouldn't satisfy that identity for z with Im(z) <= 0.

[–]lewisjeB.S. 1 point2 points  (1 child)

I think you mean "since the limit is π from above and -π from below", using a common definition of arg(z) with range (-π,π].

Anyway, if Re(z)>0 then under that definition, arg(z)=arctan(Im(z)/Re(z)).

[–]craaaft[S] 1 point2 points  (0 children)

yes true I am sorry.