Q: Why does
not stop at ?
A: David Withoff (email@example.com) answers: This particular example is a degenerate case, because the first step at which the value of the StoppingTest option was True turned out to be the endpoint of the integration. Using smaller steps by reducing the MaxStepSize option of NDSolve makes this effect more conspicuous.
A useful trick for analyzing NDSolve is to make StoppingTest a delayed rule (:> not ->) which includes a Print statement. Here we print out the pairs of and values.
You can see that t was incremented by MaxStepSize in the last two steps.
Converted by Mathematica September 29, 1999 [Prev Page][Next Page]