$IterationLimit

$IterationLimit
gives the maximum length of evaluation chain used in trying to evaluate any expression.

DetailsDetails

  • $IterationLimit limits the number of times the Wolfram Language tries to reevaluate a particular expression.
  • $IterationLimit gives an upper limit on the length of any list that can be generated by Trace.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

The default $IterationLimit:

In[1]:=
Click for copyable input
Out[1]=

Define a function in an iterative fashion:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input

Evaluate by temporarily setting $IterationLimit to a different value:

In[3]:=
Click for copyable input
Out[3]=

With a higher $IterationLimit, the function can be computed:

In[4]:=
Click for copyable input
Out[4]=
Introduced in 1991
(2.0)
Translate this page: