I want to plot the parametric diagram of {y[t],z[t]}
, in which I manipulate a parameter, ω, from $[1, 10 \pi]$. Here is what I have attempted, but I can't get a plot. I think there is something wrong with my Manipulate
expression.
Can anyone give me some advice?
Remove["Global`*"]
dieff = {y''[t] == ω z'[t],
z''[t] == -ω y'[t] + ω E1/B};
inicond = {y[0] == y'[0] == z[0] == z'[0] == 0};
eqnlist = Join[dieff, inicond];
soln = DSolve[eqnlist, {y[t], z[t]}, t][[1]];
E1 = B = 1;
Print["y[t] = ", y[t] /. soln]
Print["z[t] = ", z[t] /. soln]
Manipulate[ParametricPlot[ {y[t], z[t]} /. soln, {t, 0, 2}], {ω, 0, 10 π}]