Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • $\begingroup$ any reason why you write InitialState instead of initialState and F2 instead of f2 etc..? It makes look like they are Mathematica own symbols and can be confusing. $\endgroup$ Commented Oct 19, 2013 at 2:25
  • $\begingroup$ sorry about that, Ill go ahead and fix it now $\endgroup$ Commented Oct 19, 2013 at 2:39
  • $\begingroup$ I suggest you define a function nextState that accepts initialState (and optionally the kernel) as an argument and then use NestList to create the list of successive states. This will get rid of the For loop and the cache. $\endgroup$ Commented Oct 19, 2013 at 11:24