@guoxiaowhu
2016-04-24T01:52:36.000000Z
字数 993
阅读 1101
————计算物理第五次作业
未分类
Author:GUO Xiao
继1.5题之后,又采用Euler法求解课本上的problem1.6
人口的增长速率有两项,一项是出生率,正比于总人口数N,另一项是死亡率,正比于总人口数的平方
Discretize this differential equation, we obtain
Solution program code
To makes sure the accuracy of numerical solution,I let dt=0.001.
When, b has different values.
When , is exponenital growth;
When , will decrease(or increase) till reach a stable state .If , will keep constant .
When
When
-1.If ,N will exponenitally grow without limit.
-2.If ,N will gradually reach a stable state .At the same time,if, will keep constant .