Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Newbie facing $RecursionLimit and Stack Space on OSX

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51124] Newbie facing $RecursionLimit and Stack Space on OSX
  • From: János <janos.lobb at yale.edu>
  • Date: Tue, 5 Oct 2004 04:37:13 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi

I do

In[9]:=
$RecursionLimit=100000

Out[9]=
100000

then I do

In[38]:=
Fold[List,{},Table["",{i,592}]]

Out[38]=
MathLink Error

Message Box says:
Front End Message  (15:00:27 on 10/4/04)
There is not enough stack space for this operation.  Try increasing the  
amount of stack space before running Mathematica.

if I do it 591 times then I get nicely:

In[41]:=
Fold[List,{},Table["",{i,591}]]

Out[41]=
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ 
{{{{{{\
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ 
{{{{{{\
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ 
{{{{{{\
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ 
{{{{{{\
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ 
{{{{{{\
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ 
{{{{{{\
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ 
{{{{{{\
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}, 
},},},\
},},},},},},},},},},},},},},},},},},},},},},},},},},},},},}

I use a G4 with OSX 10.3.5 and Mathematica is 5.0.1.0.   What is so  
magical in the number 592 ?  Why not 599 or 99999 ?

Thanks ahead,

János
P.S.
In[43]:=
$RecursionLimit

Out[43]=
100000

----------------------------------------------
Trying to argue with a politician is like lifting up the head of a  
corpse.
(S. Lem: His Master Voice)


  • Prev by Date: Re: Re: Conditinal Plots
  • Next by Date: Re: Problem with Maximize and conditions.
  • Previous by thread: Re: Re: Conveniently Restarting Notebooks
  • Next by thread: Reads only part of file