Find limit of recursion: Difference between revisions
Content added Content deleted
m (Use 'println' instead of 'msg') |
(Added a solution for MATLAB) |
||
Line 222: | Line 222: | ||
print error ; 16 Stopping... recurse [make "depth :depth + 1] |
print error ; 16 Stopping... recurse [make "depth :depth + 1] |
||
(print [Depth reached:] :depth) ; some arbitrarily large number</lang> |
(print [Depth reached:] :depth) ; some arbitrarily large number</lang> |
||
=={{header|MATLAB}}== |
|||
The recursion limit can be 'get' and 'set' using the "get" and "set" keywords. |
|||
Sample Usage: |
|||
<lang MATLAB>>> get(0,'RecursionLimit') |
|||
ans = |
|||
500 |
|||
>> set(0,'RecursionLimit',2500) |
|||
>> get(0,'RecursionLimit') |
|||
ans = |
|||
2500</lang> |
|||