Menu

Recursion limit

Serdna
2008-04-30
2013-04-03
  • Serdna

    Serdna - 2008-04-30

    Hi!

    I have being using this superb piece of software lately, so I am grateful. Nevertheless, I am unable to get more than a 10 steps recursion in the simple ErlangB formula (well, its inverse):

    invErlang() = "if(x>0:1+x/x(2)*invErlang(x-1:x(2)):1)"

    that is, it fails with invErlang(11:5).

    Is there any simple way to increase the depth deeper than 10? (selectable stack size option?).

    I am using a Clié PEG-T675C (that is PalmOS 4.1).

    Thanks in advance.

     
    • Ton van Overbeek

      Currently there is a hard coded limit of 10 for the recursion depth in the code.
      Look for MAX_RECURS in the source code.
      I'll see if this can be changed for the next version and have added this as a feature request.

       
    • Serdna

      Serdna - 2008-05-02

      Ok, thanks!

       

Log in to post a comment.