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

Parametric plot in mathematica

  1. Oct 28, 2011 #1
    hi
    i solve numerically two coupled equation and obtain two function x[t] and y[t].

    how i plot x[t] versus y[t] so that horizontal axis to be x[t] and vertical axis to be y[t].

    here is the notebook of mathematica
    http://www.mediafire.com/?g4sa3zi630vi8nl [Broken]

    thanks
     
    Last edited by a moderator: May 5, 2017
  2. jcsd
  3. Oct 28, 2011 #2
    Compare
    {x[t] /. sol, y[t] /. sol}
    with
    {x[t], y[t]} /. sol
    and see that what you are doing has an extra layer of {} around your functions that ParametricPlot objects to.

    So
    ParametricPlot[{x[t], y[t]} /. sol, {t, 0, 10}]
    should work for you.

    It might be educational to track down exactly what happened and why it didn't work.
    Trace[] could help you do that.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Parametric plot in mathematica
  1. Mathematica plotting (Replies: 4)

  2. Mathematica plot (Replies: 1)

  3. Plot in mathematica (Replies: 2)

Loading...