MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

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



  • Prev by Date: Mathematica pegs core - Can anyone else reproduce?
  • Next by Date: InheritScope
  • Previous by thread: NDSolve
  • Next by thread: Re: NDSolve