help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

max_recursion_limit


From: John W. Eaton
Subject: max_recursion_limit
Date: Sat, 5 Feb 2005 12:50:25 -0500

On  5-Feb-2005, Gorazd Brumen <address@hidden> wrote:

| Hi everybody,
| 
| I am new on the list. The question is: How to increase
| max_recursion_limit in octave? I get an error:
| 
| error: max_recursion_limit exceeded
| 
| In matlab it is easy: set (...blabla..)

Reset the built-in variable max_recursion_depth.

  octave:1> help max_recursion_depth
  max_recursion_depth is a built-in variable

   -- Built-in Variable: max_recursion_depth
       Limit the number of times a function may be called recursively.
       If the limit is exceeded, an error message is printed and control
       returns to the top level.

       The default value is 256.

BTW, recursion in Octave is relatively slow.  Are you sure you want to
define a heavily recursive function?

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]