Re: manipulate time
- To: mathgroup at smc.vnet.net
- Subject: [mg114763] Re: manipulate time
- From: Themis Matsoukas <tmatsoukas at me.com>
- Date: Thu, 16 Dec 2010 05:49:06 -0500 (EST)
If you want to scan the effect of r, then use r as the variable in Manipulate. You must then supply the values for k, n (or you can add them as manipulated variables).
Manipulate[
k = 2;
n = 10;
sol = DSolve[{\[Theta]'[t] == k i[t],
i'[t] == -k \[Theta][t] - r i[t] + 10,
i[0] == 0, \[Theta][0] == 0}, {i, \[Theta]}, t];
ParametricPlot[Evaluate[{i[t], \[Theta][t]} /. sol], {t, 0, n},
PlotRange -> {{-10, 10}, {-1, 15}}],
{r, 1, 4, 1}
]
Themis