Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9530 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-04-09 09:36 +0000 |
| Last post | 2012-04-09 09:36 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Varying a constant in an ODE to Manipulate solution set Bob Hanlon <hanlonr357@gmail.com> - 2012-04-09 09:36 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-04-09 09:36 +0000 |
| Subject | Re: Varying a constant in an ODE to Manipulate solution set |
| Message-ID | <jluain$rrt$1@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 top | Article view | comp.soft-sys.math.mathematica
csiph-web