Re: NDSolve
- To: mathgroup at smc.vnet.net
- Subject: [mg117439] Re: NDSolve
- From: schochet123 <schochet123 at gmail.com>
- Date: Fri, 18 Mar 2011 06:02:30 -0500 (EST)
- References: <ilsrjr$t5o$1@smc.vnet.net>
Try something like NDSolve[{y''[t] == -y[t], y[0] == 1, y'[0] == 0}, y, {t, 0, 1}, StartingStepSize -> 1/10, Method -> {"FixedStep", Method -> "ExplicitEuler"}] For more details and to see what methods and other options may be specified, see the tutorial Advanced Numerical Differential Equation Solving in Mathematica in the documentation. The above example is taken from there. Steve On Mar 17, 1:34 pm, tarun dutta <tarundut... at gmail.com> wrote: > while we want to use NDSolve the format of NDSolve is like > NDSolve[{equations},variable,{x,Xmin,Xmax}] > I wish to write {x,Xmin,Xmax} inthe following way > {x,Xmin,Xmax,Xstep} e.g.{x,0,5,1} > But the problem is that I can not use this kind of format. > Is there anyway of writing this stuff? > regards > tarun