Parametric plot in mathematica

  • Mathematica
  • Thread starter yashar
  • Start date
  • #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:

Answers and Replies

  • #2
1,069
29
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.
 

Related Threads on Parametric plot in mathematica

Replies
4
Views
4K
  • Last Post
Replies
9
Views
15K
  • Last Post
Replies
6
Views
13K
  • Last Post
Replies
1
Views
2K
Replies
3
Views
771
  • Last Post
Replies
2
Views
2K
Replies
2
Views
11K
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
1
Views
2K
Replies
4
Views
8K
Top