$IterationLimit::itlim
Details
-
- This message is generated when the number of iterative evaluations of an expression exceeds the indicated limit.
- The limit on the number of iterative evaluations of an expression is determined by the value of $IterationLimit.
- If your calculation requires a large number of iterative evaluations, you can set the value of $IterationLimit to a large positive integer or to Infinity.
- This message is sometimes caused by syntax errors, such as misplaced "=" signs.
- Off[message] switches off the message; On[message] switches it on. For example: Off[$IterationLimit::itlim].
Examples
Basic Examples (1)
With this rule for f[p_], evaluation of f[p-1] will lead to infinite iteration:
f[p_] = f[p - 1]Clear[f]A termination rule can be added so that the iteration will stop:
f[p_Integer] = f[p - 1]f[0] = 1f[10]Clear[f]