MathGroup Archive 2002

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

Search the Archive

Re: Checking the Results of NDSolve

  • To: mathgroup at
  • Subject: [mg37313] Re: Checking the Results of NDSolve
  • From: atelesforos at (Orestis Vantzos)
  • Date: Wed, 23 Oct 2002 02:56:44 -0400 (EDT)
  • References: <ap07cn$c4f$>
  • Sender: owner-wri-mathgroup at

If there is a preserved quantity in the ODE system (and the residuals
referred to a previous post on this thread certainly are) you can use
it to perform an independent check.
It must be noted though that the residuals are not appropriate for an
entirely independent check in most cases, since most numerical solvers
use them for exactly this kind of check.
ODEs from physics usualy have one or more 'integrals'(preserved
quantities); typicaly the energy of the system.

the ODEs {x'[t]==-y[t],y'[t]==x[t]} describe a rotation around the
origin with fixed angular velocity.
The preserved quantity is ofcourse the distance from the origin
One could use Abs[d[0]-d[t]] as an independent check for the validity
of the approximate NDSolve solution.

My advice is study carefuly the ODEs before feeding them to NDSolve;
analytical results (such as the existence of preserved quantities) can
radicaly improve the usefulness of numerical results.


  • Prev by Date: Re: Raising Contour Plot Graphics to 3D
  • Next by Date: RE: magnify Help Browser
  • Previous by thread: Re: Checking the Results of NDSolve
  • Next by thread: Get rid of unwanted {}