This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

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