I’m trying to set up this system of equations that sequential feeds into itself. I have these 2 equations I’m running. I’m new to Mathematica so I have no idea how to even start this.
The basic idea is:
D0 -> G1 -> D1 -> …. Dt-1 -> Gt -> Dt and I want to run this for some fix amount of periods.
where D0 is just some initial given value but everything after that is dependent upon the system. Can you guys offer me any advice?
Nest
/Fold
? $\endgroup$G(t)
a function that takes a state of the systemD(t)
at timet
to the state at timet+1
? IsG(t)
known as a function of time? Is time a discrete variable (as your diagram seems to suggest) or is it continuous? In order to program effectively, in Mathematica or anything else, you (and the community here, if they are to help you) need to understand precisely the problem that you want to solve. $\endgroup$