$IterationLimit

$IterationLimit

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

Details

  • $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.

Examples

open allclose all

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]=

Scope  (1)

Generalizations & Extensions  (1)

Properties & Relations  (2)

Possible Issues  (1)

See Also

$RecursionLimit  TimeConstrained

Tutorials

Introduced in 1991
(2.0)