matlab微分方程soln_1 = dsolve('Dy = 3*x^2','y(2)=0.5')soln_1 =3*x^2*t-6*x^2+1/2 soln_3 = dsolve('Dy = 3*y + exp(2*x)',' y(0) = 3')soln_3 =-1/3*exp(2*x)+exp(3*t)*(1/3*exp(2*x)+3)为什么全和答案不一样 那个t是什么东西

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 16:58:50

matlab微分方程soln_1 = dsolve('Dy = 3*x^2','y(2)=0.5')soln_1 =3*x^2*t-6*x^2+1/2 soln_3 = dsolve('Dy = 3*y + exp(2*x)',' y(0) = 3')soln_3 =-1/3*exp(2*x)+exp(3*t)*(1/3*exp(2*x)+3)为什么全和答案不一样 那个t是什么东西
matlab微分方程
soln_1 = dsolve('Dy = 3*x^2','y(2)=0.5')
soln_1 =
3*x^2*t-6*x^2+1/2
soln_3 = dsolve('Dy = 3*y + exp(2*x)',' y(0) = 3')
soln_3 =
-1/3*exp(2*x)+exp(3*t)*(1/3*exp(2*x)+3)
为什么全和答案不一样 那个t是什么东西

matlab微分方程soln_1 = dsolve('Dy = 3*x^2','y(2)=0.5')soln_1 =3*x^2*t-6*x^2+1/2 soln_3 = dsolve('Dy = 3*y + exp(2*x)',' y(0) = 3')soln_3 =-1/3*exp(2*x)+exp(3*t)*(1/3*exp(2*x)+3)为什么全和答案不一样 那个t是什么东西
它在dsolve中默认的变量为t,所以会出现这样的结果,你需要指定变量为x,或者你把你的x换成t,然后把结果中的t在换成x