Solve two variable recursive equation in Mathematica, is that possible?

只谈情不闲聊 提交于 2019-12-14 04:25:24

问题


I tried to use RSolve to solve a two variable recursive equation in Mathematica, but it simply repeats what I type.

Is it possible to solve two variable recursive equations in Mathematica?


回答1:


Perhaps you should include the equation in your question, as it is possible you are simply using RSolve incorrectly.

Mathematica can solve some two-variable recurrence equations, but not all.

Sometimes the free package Guess.m can solve what RSolve cannot. (You must request access to the file; contact information is on that page.)




回答2:


I discovered RecurrenceTable[] today while trying to plot the Logistic map. It gives a table of values, symbolic if you like, given a set of recurrence relations and initial conditions. Oh, and it's really fast.

For example,

logisticMap[r_,x0_,maxn_]:=RecurrenceTable[{x[n+1]==r x[n](1-x[n]),x[0]==x0},x,{n,0,nmax}]; Manipulate[ListPlot[Transpose[{Range[0,maxn],logisticMap[r,x0,maxn]}],PlotRange->{0,1}],{{r,3.485},0,4},{{x0,0.432},0,1},{{maxn,500},10,1000,1}]

The documentation for RecurrenceTable gives examples for two-variable relations.



来源:https://stackoverflow.com/questions/6293668/solve-two-variable-recursive-equation-in-mathematica-is-that-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!