Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

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.
>


  • 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