I am practicing with a non-linear differential equation and attempting to get a parametric plot of the solution at different times. The ParametricPlot function works fine for a display of the output for a continuous range of t, but I need a plot that shows the output at a sequence of times. The equation is:
s = NDSolve[{\[CapitalTheta]''[t] + Sin[\[CapitalTheta][t]] == 0, \[CapitalTheta][0] == \[Pi]/2, \[CapitalTheta]'[0] ==
1.4141999}, \[CapitalTheta], {t, 0, 100}]
theta[t_] := \[CapitalTheta][t] /. s
thetaprime[t_] := \[CapitalTheta]'[t] /. s
Plot[theta[t], {t, 0, 100}]
Table[theta[t], {t, 0, 100, 0.5}];
ListPlot[%]
Table[thetaprime[t], {t, 0, 100, 0.5}];
ListPlot[%]
(*Table[theta[t],thetaprime[t], {t, 0, 500, 100}]
ListPlot[%]*)
![enter image description here][1]
So, I have two issues with this:
1) the ListPlot[%] shows all the values of theta at 1 -- I would expect the x-axis to display the value of t.
2) when I try to generate a 2-D table of values (theta[t] and thetaprime[t]), I get syntax errors.
Many years ago I was pretty good at Mathematica (version 3.0!) -- I seem to have lost it and need help with managing lists and tables.