Re: StoppingTest option for NDSolve
- To: mathgroup at smc.vnet.net
- Subject: [mg35016] Re: StoppingTest option for NDSolve
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 20 Jun 2002 02:13:10 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <aepkmo$s04$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, NDSolve[{y''[t] + y[t] == 0, y[0] == 1, y'[0] == 0}, y[t], {t, 0, 4Pi}, StoppingTest :> (y[t] < 0)] ? Regards Jens Randall Beer wrote: > > Does anyone know how to use the StoppingTest option for NDSolve? This > option doesn't seem to be documented, but shows up in Options[NDSolve]. > > I need to terminate a numerical integration when given state variables > go out of a specified region, and I was hoping that I could do this by > defining a stopping test. > > Thanks, > Randy