matlab解方程 x*e^(-n*t)-x*e^(-m*t)-y*e^(-m*t)+y*e^(-z*t)-c=0syms x1 x2 x3 x4 x5 x6 x7;>> t=[0.25,0.5,0.75,1,1.5,2,2.5,3,3.5,4,4.5,5,6,7,8,9,10,11,12,13,14,15,16];>> c=[30,68,75,82,82,77,68,68,58,51,50,41,38,35,28,25,18,15,12,10,7,7,4];>> [x,y,z,m,
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 13:46:05
matlab解方程 x*e^(-n*t)-x*e^(-m*t)-y*e^(-m*t)+y*e^(-z*t)-c=0syms x1 x2 x3 x4 x5 x6 x7;>> t=[0.25,0.5,0.75,1,1.5,2,2.5,3,3.5,4,4.5,5,6,7,8,9,10,11,12,13,14,15,16];>> c=[30,68,75,82,82,77,68,68,58,51,50,41,38,35,28,25,18,15,12,10,7,7,4];>> [x,y,z,m,
matlab解方程 x*e^(-n*t)-x*e^(-m*t)-y*e^(-m*t)+y*e^(-z*t)-c=0
syms x1 x2 x3 x4 x5 x6 x7;
>> t=[0.25,0.5,0.75,1,1.5,2,2.5,3,3.5,4,4.5,5,6,7,8,9,10,11,12,13,14,15,16];
>> c=[30,68,75,82,82,77,68,68,58,51,50,41,38,35,28,25,18,15,12,10,7,7,4];
>> [x,y,z,m,n]=solve(x*e^(-n*t)-x*e^(-m*t)-y*e^(-m*t)+y*e^(-z*t)-c)
无法解出结果,
matlab解方程 x*e^(-n*t)-x*e^(-m*t)-y*e^(-m*t)+y*e^(-z*t)-c=0syms x1 x2 x3 x4 x5 x6 x7;>> t=[0.25,0.5,0.75,1,1.5,2,2.5,3,3.5,4,4.5,5,6,7,8,9,10,11,12,13,14,15,16];>> c=[30,68,75,82,82,77,68,68,58,51,50,41,38,35,28,25,18,15,12,10,7,7,4];>> [x,y,z,m,
你的e是自然常数2.71828…吗?那么matlab里应e^x的表达式应该是
exp(x)
而不是你写的那样.
另外,solve函数不是万能的,很多多元方程它是解不出来的,你需要用数值方法求解.