Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica question - plotting an equation

  1. Jul 28, 2008 #1
    How could I use Mathematica to give me a plot of the locus of z such that

    [tex]\arg(\frac{z-2}{z+5}) = \frac{\pi}{4}[/tex] ?

    I've tried using ContourPlot and typing

    ContourPlot[Arg[(x - 2 + I)/((x + 5) + I)] == (\[Pi]/4), {x, -5, 5}, {y, -5, 5}]

    but it just gives me two vertical lines. I think the correct graph should be the arc of a circle passing through (-5,0) and (2,0).

    Many thanks!
     
  2. jcsd
  3. Jul 29, 2008 #2

    alphysicist

    User Avatar
    Homework Helper

    Hi kidsmoker,

    I think the reason it is giving vertical lines is because you have left out the y variable in your Arg function. I believe it should be:

    Arg[(x - 2 + y I)/((x + 5) + y I)]

    Does that work?
     
  4. Jul 30, 2008 #3
    Got it! Thanks very much :-)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Mathematica question - plotting an equation
  1. Mathematica Question (Replies: 1)

  2. Mathematica questions (Replies: 10)

  3. Mathematica question (Replies: 10)

  4. Mathematica question (Replies: 1)

  5. Mathematica question (Replies: 4)

Loading...