Re: Complex Question

*To*: mathgroup at smc.vnet.net*Subject*: [mg26313] Re: [mg26277] Complex Question*From*: BobHanlon at aol.com*Date*: Sun, 10 Dec 2000 21:37:59 -0500 (EST)*Sender*: owner-wri-mathgroup at wolfram.com

arg[z_?NumericQ] := Module[{a = Arg[z]}, If [a < 0, a + 2*Pi, a]]; arg[3 - 4I] 2*Pi - ArcTan[4/3] % // N 5.35589 Bob Hanlon In a message dated 12/10/00 12:50:23 AM, rry1 at Ra.MsState.Edu writes: >How do I change the range of the argument function in mathematica? I'm >working on a problem where I need the arguments in the range [0, 2*Pi) >not >(-Pi, Pi]. And the way I have coded everything makes it rather hard to >manually change the argument at every occurance. Any help would be >appreciated. >