MathGroup Archive 2002

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

Search the Archive

Re: Internal parameters of NDSolve, write-out of preliminary data


Hi,

t1 = 0;
i = 0;
NDSolve[{y''[t] == -y[t], y[0] == 1, y'[0] == 0}, y[t], {t, 0, 20Pi}, 
  StoppingTest :> (i++; If[Mod[i, 10] == 0, Print[i," t->",t," dt->",t -
t1]]; t1 = t; False)]

Regards
  Jens

"Telley, Ivo Andreas" wrote:
> 
> Dear Mathematica cracks
> 
> I am looking for some parameter calls, if any exist at all, for the NDSolve
> function of Mathmatica 4.1:
> 
> I want to let the solver write out the actual step number and the point that
> it is calculating, say, for every 1000 steps. That way I could control more
> what the solver is doing and where it might be stuck (especially when
> solving almost singular problems).
> 
> Has anyone more experience with this Solver and possibilities to control the
> its actual state?
> 
> Thanks for helping me!
> 
> Ivo


  • Prev by Date: Re: Notation for Log[b,n]
  • Next by Date: Re: PolynomialQ ?
  • Previous by thread: Internal parameters of NDSolve, write-out of preliminary data
  • Next by thread: Re: Use of ShowProgress