Question: too many levels of recusion

<p style="text-align: left;">Hi everyone,<br />
<br />
I've been tinkering with this problem for the past week but I'm suck :S!  I've tried google, mapleprimes, and the maple help file and nothing.<br />
<br />
It's really a quite bizzare problem where I can use a procdure that I've defined... so long as I don't use it in a loop :S.<br />
<br />
The procudure (called OVLM) takes 2 numbers as inputs and outputs an algebraic expression with 4 parameters as outputs.<br />
</p>
<p style="text-align: left;">------------------------<br />
<b>Example:</b><br />
> OVLM(3,7);</p>
<p style="text-align: center;">(α<sub>3</sub>+β<sub>3</sub>)<sup>20</sup>+(α<sub>7</sub>+β<sub>7</sub>)<sup>10</sup>+(α3+β<sub>7</sub>)<sup>5</sup></p>
<p style="text-align: left;">------------------------------------</p>
<p style="text-align: left;">now if I do</p>
<p style="text-align: left;">> OVLM(1,1);</p>
<p style="text-align: left;">Maple gives me the answer no problem, but if I try putting that in even the simplest loop</p>
<p style="text-align: left;">> for i from 1 to 2 do<br />
       OVLM(1,1)<br />
    od;</p>
<p style="text-align: left;">Maple says "Error, (in type/algfun) too many levels of recusion".</p>
<p style="text-align: left;"> </p>
<p style="text-align: left;">So my question is, how do I increase the number of recusion levels that Maple allows?<br />
Is there a way to increase the memory size or stack size that linux or windows allots for Maple?</p>
<p style="text-align: left;"> </p>
<p style="text-align: left;">Thanks in advance,</p>
<p style="text-align: left;">-Mike</p>
Please Wait...