Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9530
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Varying a constant in an ODE to Manipulate solution set |
| Date | 2012-04-09 09:36 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jluain$rrt$1@smc.vnet.net> (permalink) |
| References | <201204080816.EAA15103@smc.vnet.net> |
Manipulate[
tmax = 2 Pi;
sol = NDSolve[{
y''[t] + c Sin[y[t]/c] == 0,
y[0] == c/(1 + c), y'[0] == 0},
y, {t, 0, tmax}][[1]];
Plot[y[t] /. sol, {t, 0, tmax},
PlotRange -> {-0.75, 0.75}],
{{c, 1}, 0.5, 2, 0.01,
Appearance -> "Labeled"}]
Bob Hanlon
On Sun, Apr 8, 2012 at 4:16 AM, Narasimham <mathma18@hotmail.com> wrote:
> y''[t]+ c Sin[ y[t]/c ] ==0 needs to be NDSolved with Boundary
> conditions y'[0] == 0, y[0] == c/(1+c).
>
> How to Manipulate or Animate the y[t] plots with say 0.5 < c < 2 ?
>
> Regards
> Narasimham
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Varying a constant in an ODE to Manipulate solution set Bob Hanlon <hanlonr357@gmail.com> - 2012-04-09 09:36 +0000
csiph-web