Wolfram mathematica Mathematica Euler';s法

Wolfram mathematica Mathematica Euler';s法,wolfram-mathematica,Wolfram Mathematica,我在尝试用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 expecte

我在尝试用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}. >>

不能设置
t=0
,因为它是一个数字。在会话中,下面给出

b=2/100;
d=15/1000;
r=1/10;
h=1;
DSolve[{p'[t]==r*b*(1-p[t]),p[0]==0.01},p[t],t]


不能设置
t=0
,因为它是一个数字。在会话中,下面给出

b=2/100;
d=15/1000;
r=1/10;
h=1;
DSolve[{p'[t]==r*b*(1-p[t]),p[0]==0.01},p[t],t]


你的代码对我来说是有效的,你之前只定义了p或p’,并且必须清除它。我不知道怎么做,这也没用。请尝试更改t变量,或关闭mathematica并重新加载工作簿。您的代码对我有效,您之前刚刚定义了p或p',必须将其清除。我不知道怎么做,这也没用。尝试更改t变量,或关闭mathematica并重新加载工作簿。