问题描述
我尝试使用 RSolve
在 Mathematica 中求解一个二变量递归方程,但它只是重复了我输入的内容.
I tried to use RSolve
to solve a two variable recursive equation in Mathematica, but it simply repeats what I type.
是否可以在 Mathematica 中求解两个变量递归方程?
Is it possible to solve two variable recursive equations in Mathematica?
推荐答案
我今天在尝试绘制 Logistic 地图时发现了 RecurrenceTable[]
.它给出了一个值表,如果你愿意,它是象征性的,给出了一组递推关系和初始条件.哦,它真的很快.
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.
例如
logisticMap[r_,x0_,maxn_]:=RecurrenceTable[{x[n+1]==rx[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}]
RecurrenceTable
的文档给出了两变量关系的示例.
The documentation for RecurrenceTable
gives examples for two-variable relations.
这篇关于在 Mathematica 中解决两个变量的递归方程,这可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!