作业帮 > 数学 > 作业

怎样用matlab解方程组?

来源:学生作业帮 编辑:作业帮 分类:数学作业 时间:2024/10/03 02:07:25
怎样用matlab解方程组?
x1+x01=sqrt(x2^2+y2^2)*cos(a+atan(y2/x2))+qrt(x01^2+y01^2)*cos(a+atan(y01/x01));
y1+y01=sqrt(x2^2+y2^2)*sin(a+atan(y2/x2))+y02=sqrt(x01^2+y01^2)*sin(a+atan(y01/x01))
其中x1,y1,x2,y2是已知量,要求x01,y01.
f1=sym('x1+x01=sqrt(x2^2+y2^2)*cos(a+atan(y2/x2))+qrt(x01^2+y01^2)*cos(a+atan(y01/x01))
');
f2=sym('y1+y01=sqrt(x2^2+y2^2)*sin(a+atan(y2/x2))+y02=sqrt(x01^2+y01^2)*sin(a+atan(y01/x01))
');
[x1,x2]=solve(f1,f2,'x01','x02')
再问: 我一开始就是这么做的,总是提示:Warning: Explicit solution could not be found.
再答: 你的那两个方程有很多问题啊,首先qrt应该是sqrt吧,第二个方程中间那个等号是减号吧,还有第二个方程怎么还有个y02啊,是不是写错了啊!