Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9528
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Varying a constant in an ODE to Manipulate solution |
| Date | 2012-04-09 09:38 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jluamh$rsg$1@smc.vnet.net> (permalink) |
| References | <201204080816.EAA15103@smc.vnet.net> |
soln[c_] := y[t] /. First[
NDSolve[{y''[t] + c Sin[y[t]/c] == 0, y'[0] == 0,
y[0] == c/(1 + c)}, y[t], {t, 0, 1}]
]
Manipulate[
Plot[Evaluate[soln[c]], {t, 0, 1}, PlotRange -> {0, 0.8}],
{c, 0.5, 2, 0.1}]
On 4/8/12 4:16 AM, Narasimham 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
>
--
Murray Eisenberg murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Varying a constant in an ODE to Manipulate solution Murray Eisenberg <murray@math.umass.edu> - 2012-04-09 09:38 +0000
csiph-web