用matlab 中solve求解线性方程组,求大神帮帮,..syms s3,x3,x4,se;[s3,x3,x4,se]=solve('s3*cos(x3)=0.125*cos(0.174)','s3*sin(x3)=0.275+0.125*sin(0.174)','0.6*cos(x3)+0.15*cos(x4)-se=0','0.6*sin(x3)+0.15*sin(x4)=0.3')结果出现:s3 =z2z2x3
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 00:55:02
用matlab 中solve求解线性方程组,求大神帮帮,..syms s3,x3,x4,se;[s3,x3,x4,se]=solve('s3*cos(x3)=0.125*cos(0.174)','s3*sin(x3)=0.275+0.125*sin(0.174)','0.6*cos(x3)+0.15*cos(x4)-se=0','0.6*sin(x3)+0.15*sin(x4)=0.3')结果出现:s3 =z2z2x3
用matlab 中solve求解线性方程组,求大神帮帮,..
syms s3,x3,x4,se;
[s3,x3,x4,se]=solve('s3*cos(x3)=0.125*cos(0.174)','s3*sin(x3)=0.275+0.125*sin(0.174)','0.6*cos(x3)+0.15*cos(x4)-se=0','0.6*sin(x3)+0.15*sin(x4)=0.3')
结果出现:
s3 =
z2
z2
x3 =
(3*cos(z3))/5 + (3*cos(z4))/20
(3*cos(z3))/5 + (3*cos(z4))/20
x4 =
z3
z3
se =
z4
为何呢?应该为数字吧...
用matlab 中solve求解线性方程组,求大神帮帮,..syms s3,x3,x4,se;[s3,x3,x4,se]=solve('s3*cos(x3)=0.125*cos(0.174)','s3*sin(x3)=0.275+0.125*sin(0.174)','0.6*cos(x3)+0.15*cos(x4)-se=0','0.6*sin(x3)+0.15*sin(x4)=0.3')结果出现:s3 =z2z2x3
如果你将[s3,x3,x4,se]作为 A*X = B 中的X,很显然这不科学,因为你左一个cos,右一个sin把 A 搞得早就不行了,早就不线性了,换句话说这根本就不是线性方程组都嘛.
直接求解得了吧,第一个方程除以第二个方程(当然s3肯定不等于0,你懂的),可得cot(x3) = 某个常数 解得x3,你懂的,x3得到了带入第4个得到x4,后面你也懂的...