Re: question RE: difference equations
- To: mathgroup at smc.vnet.net
- Subject: [mg26098] Re: [mg26066] question RE: difference equations
- From: Tomas Garza <tgarza01 at prodigy.net.mx>
- Date: Tue, 28 Nov 2000 01:55:42 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Perhaps you might take a look at the Add-On package DiscreteMath`RSolve which is concerned with solving recurrence or difference equations. Now, if you only want to take your system step by step and you are troubled by reaching the recursion limit (which has the default value 256) then you can change it (see $RecursionLimit in the on-line help browser). Tomas Garza Mexico City "John McArthur" <john.mcarthur at brasenose.oxford.ac.uk> wrote: > I am a new Mathematica user so apologize for the basic nature of my > question: > > I want to set up a system of simultaneous difference equations but am > having trouble with the syntax. Essentially I would like to map the growth > of a system as follows: > > y1(t)=y1(t-1) + a*y2(t-1) + b*y3(t-1)... + xx*yn(t-1) > y2(t)=y2(t-1) + c*y1(t-1) + d*y3(t-1)... + yy*yn(t-1) > ... > yn(t)=yn(t-1) + x*y1(t-1) + z*y2(t-1)... + zz*y[n-1](t-1) > > I know how to set up a univariate recursive equation, but am not clear on > how to set up a multivariate form. My most common error message is one of > "recursion limit reached." Any suggestions (and possibly advice > on the simplest way to set up a system like the one above) would be > greatly appreciated.