Bug in Mathematica 2.2 for Solaris

*To*: mathgroup at smc.vnet.net*Subject*: [mg6200] Bug in Mathematica 2.2 for Solaris*From*: sheyn at cs.bu.edu (Igor Sheyn)*Date*: Thu, 27 Feb 1997 02:54:04 -0500*Organization*: Computer Science Department, Boston University, Boston, MA, USA*Sender*: owner-wri-mathgroup at wolfram.com

[ Article crossposted from sci.math.symbolic ] [ Author was Igor Sheyn ] [ Posted on 25 Feb 1997 02:02:21 GMT ] Hi, I encountered the following bug. Below is the file I load into Mathematica: --------------------------------------------------------------------- $RecursionLimit=Infinity f[1]=1;f[2]=1;f[n_]:=f[n]=f[n-1]+f[n-2] f[10075] --------------------------------------------------------------------- I define Fibonacci sequence recursively, while caching intermediate values. The program gives segmentation fault trying to find f[10075]. Any number higher than 10075 causes the same behavior. A thing to note is that after I've calculated f[10074], I can calculated f[10075] and higher, using cached values. Has any1 noticed this behavior? Thanks -- Igor Sheyn http://lynx.dac.neu.edu/home/httpd/f/fgamarni/eurodance/home.html -- Igor Sheyn http://lynx.dac.neu.edu/home/httpd/f/fgamarni/eurodance/home.html