MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: RegularExpression::maxrec: Recursion limit exceeded - positive match might be missed


Hi,

Block[{$RecursionLimit = 2, fac},
 fac[1] = 1;
 fac[n_Integer?Positive] := n*fac[n - 1];
 fac[10]
]

will decrease it

Block[{$RecursionLimit = Infinity, fac},
 fac[1] = 1;
 fac[n_Integer?Positive] := n*fac[n - 1];
 fac[10]
]

will make it larger.

Regards

  Jens

"Chris Chiasson" <chris.chiasson at gmail.com> 
schrieb im Newsbeitrag 
news:dgm0n0$nv0$1 at smc.vnet.net...
| Dear MathGroup,
| How do I increase the maximum recursion limit 
for string pattern matching?
| Regards,
| -- 
| Chris Chiasson
| http://chrischiasson.com/contact/chris_chiasson
| 



  • Prev by Date: Re: Running ps2pdf from within Mathematica
  • Next by Date: Re: Running ps2pdf from within Mathematica
  • Previous by thread: RegularExpression::maxrec: Recursion limit exceeded - positive match might be missed
  • Next by thread: writing a function with unknown number of paramters