MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Complex Question

  • To: mathgroup at
  • Subject: [mg26313] Re: [mg26277] Complex Question
  • From: BobHanlon at
  • Date: Sun, 10 Dec 2000 21:37:59 -0500 (EST)
  • Sender: owner-wri-mathgroup at

arg[z_?NumericQ] := Module[{a = Arg[z]}, If [a < 0, a + 2*Pi, a]];

arg[3 - 4I]

2*Pi - ArcTan[4/3]

% // N


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)
>(-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

  • Prev by Date: BarChart Options?
  • Next by Date: sum of the angle in a 4th dim triangle
  • Previous by thread: Complex Question
  • Next by thread: Regression Coeffcients