> 数学 >
怎样用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.
人气:487 ℃ 时间:2020-03-19 11:02:05
解答
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(f...我一开始就是这么做的,总是提示:Warning: Explicit solution could not be found.你的那两个方程有很多问题啊,首先qrt应该是sqrt吧,第二个方程中间那个等号是减号吧,还有第二个方程怎么还有个y02啊,是不是写错了啊!
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版