MathGroup Archive 2005

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60547] Re: RegularExpression::maxrec: Recursion limit exceeded - positive match might be missed
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 20 Sep 2005 05:19:01 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <dgm0n0$nv0$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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