MathGroup Archive 2007

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

Search the Archive

why no result & no error from this recursion

Why does the following recursion produce neither a result nor an error 
message -- nor a system crash?

Block[{$RecursionLimit=50002}, (If[#<1, "", "." <> #0[# - 1]] &)[50000]]

I even tried setting $RecursionLimit=Infinity, but no change.

I presume this is just bumping up against a hardware/OS limit, so I'm 
surprised to get no error message and no crash.

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Re: ToExpression again
  • Next by Date: Re: Integrate question
  • Previous by thread: Re: determine viewpoint value during V6 3d rotation
  • Next by thread: Re: why no result & no error from this recursion