Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: NDSolve and step-size control

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96412] Re: NDSolve and step-size control
  • From: dh <dh at metrohm.com>
  • Date: Fri, 13 Feb 2009 03:41:55 -0500 (EST)
  • References: <gn11u2$8eo$1@smc.vnet.net>


Hi Virgil,

You can tell NDSolve to use a fixed step size, but I do not know how to 

set it to a specific value, besides setting a maximal value

NDSolve has an options "Method" that can take a "controller" with the 

value of "FixedStep". E.g.:

eq = {f'[t] == f[t], f[0] == 1};

sol = f /.

   NDSolve[eq, f, {t, 0, 0.01},

     Method -> {"FixedStep", Method -> "ExplicitEuler"},

     EvaluationMonitor :> Print[t]][[1]]

hope this helps, Daniel



Virgil Stokes wrote:

> Is there a way to force the step-size to be fixed when using NDSolve? 

> Note, I am using Mathematica 7.0.0.

> 

> --V. Stokes

> 

> 




  • Prev by Date: Re: Best syntax for derivative
  • Next by Date: Typesetting bug
  • Previous by thread: Re: NDSolve and step-size control
  • Next by thread: weighted directed graph representation for BipartiteMatching (Combinatorica)