Re: Question
- To: mathgroup at smc.vnet.net
- Subject: [mg9430] Re: Question
- From: "Miles Redmon" <mredmon at sispost1.bis.adp.com>
- Date: Wed, 5 Nov 1997 01:56:44 -0500
- Organization: Rocky Mountain Internet - 1(800)-900-RMII
- Sender: owner-wri-mathgroup at wolfram.com
Your basic problem is that a[n] is defined using a[n-4], but you have only predefined a[0] and a[1]. You will also need to predefine a[2] and a[3] as well. In you current code, a[2] needs the value for a[-2]. But a[-2] will need the value for a[-6] and this will repeat to negative infinity. The recursion limit error message is Mathematica's way of stopping this madness before it goes too far. By the way you can change the recursion depth limit, but that would not have solved your problem.