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

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

    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook