Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

MaxSteps

MaxSteps
is an option to functions like NDSolve that specifies the maximum number of steps to take in generating a result.
Stop integration after 25 steps:
Allow integration to go to completion without any restriction on the number of steps:
Plot the solution in the phase plane:
Stop integration after 25 steps:
In[1]:=
Click for copyable input
Out[1]=
 
Allow integration to go to completion without any restriction on the number of steps:
In[1]:=
Click for copyable input
Out[1]=
Plot the solution in the phase plane:
In[2]:=
Click for copyable input
Out[2]=
See how method order affects integration interval with a limited number of steps:
MaxSteps is roughly equivalent to an event with a step counter:
The event function is evaluated a few extra times during initialization:
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF