Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Built-in Functions / Programming / Evaluation Control /

$RecursionLimit

FilledSmallSquare $RecursionLimit gives the current limit on the number of levels of recursion that Mathematica can use.

FilledSmallSquare $RecursionLimit=n sets the limit on the number of recursion levels that Mathematica can use to be n.

FilledSmallSquare $RecursionLimit=Infinity removes any limit on the number of recursion levels.

FilledSmallSquare $RecursionLimit gives the maximum length of the stack returned by Stack[ ].

FilledSmallSquare Each time the evaluation of a function requires the nested evaluation of the same or another function, one recursion level is used up.

FilledSmallSquare On most computers, each level of recursion uses a certain amount of stack space. $RecursionLimit allows you to control the amount of stack space that Mathematica can use from within Mathematica. On some computer systems, your whole Mathematica session may crash if you allow it to use more stack space than the computer system allows.

FilledSmallSquare MemoryInUse and related functions do not count stack space.

FilledSmallSquare See Section 2.6.13 and Section 2.6.13.

FilledSmallSquare See also: $IterationLimit, MemoryConstrained.

FilledSmallSquare New in Version 1.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: