$RecursionLimit::reclim

Details

  • This message is generated when an evaluation exceeds the indicated number of recursive evaluations.
  • The limit on the number of levels of recursion that will be used in evaluating an expression is given by the value of $RecursionLimit.
  • The value of $RecursionLimit can be set to a large value or to Infinity for calculations that require many levels of recursion.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[$RecursionLimit::reclim].

Examples

Basic Examples  (1)

If var does not have a value, evaluation of this assignment will generate infinite recursion:

If var has a value, the same assignment does not lead to infinite recursion:

Clear the value of var: