1

我正在尝试在 Mathematica 中求解一个微分方程,但我并不是很了解它。我将在下面显示方程式、我的尝试和错误消息:

方程:

dp(t)/dt=rb(1-p(t))

试图:

b = .02;
d = .015;
r = .1;
h = 1;
t = 0;
Clear[p, t]
DSolve[{p'[t] == r*b*(1 - p[t]), p[0] == .01}, p[t], t]

错误:

DSolve::deqn: Equation or list of equations expected instead of True in the first     argument {True,p[0]==0.01}. >>
4

1 回答 1

1

您无法设置t=0,因为它是一个数字。在会话中,以下给出

b = 2/100;
d = 15/1000;
r = 1/10;
h = 1;

DSolve[{p'[t] == r*b*(1 - p[t]), p[0] == .01}, p[t], t]

数学图形

于 2013-11-13T21:57:40.330 回答