Re: setting multiple boundary conditions in NDSolve
- To: mathgroup at smc.vnet.net
- Subject: [mg48505] Re: setting multiple boundary conditions in NDSolve
- From: "Peter Pein" <petsie at arcor.de>
- Date: Wed, 2 Jun 2004 04:22:26 -0400 (EDT)
- References: <c9hakv$19o$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
""G.L.Narasimham"" <mathma18 at hotmail.com> schrieb im Newsbeitrag news:c9hakv$19o$1 at smc.vnet.net... > How to suply boundary conditions yi,ydi as list/threads, say for sine > curve solutions in: deqn = 0 == y''[t] + y[t] and get all plots in > NDSolve[{deqn, y [0]== yi,y'[0]==ydi},y,{t,0,2 Pi}]?; > yv = y /. First /@ ( NDSolve[{y''[t] + y[t] == 0, y[0] == #1, y'[0] == #2}, y, {t, 0, 2 Pi}]& @@@ {{0, 1}, {1/2, 1/2}, {1, -1/4}} ); Plot[Evaluate[#[t]& /@ yv], {t, 0, 2 Pi}]; -- Peter Pein, Berlin to write to me, start the subject with [