Parametric plot in mathematica

  • #1
31
0
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:
  • #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.
 

Suggested for: Parametric plot in mathematica

Replies
4
Views
1K
Replies
2
Views
662
Replies
1
Views
460
Replies
1
Views
808
Replies
1
Views
783
Replies
2
Views
965
Replies
2
Views
2K
Replies
1
Views
689
Back
Top