早教吧作业答案频道 -->数学-->
matlab解方程组symsR0tx1x2xy[X,Y]=solve('R0*cos(t)=x2+(x2-x1)*(x*cos(y)-1)/(x^2+1-2*x*cos(y))','R0*sin(t)=(x2-x1)*x*sin(y)/(x^2+1-2*x*cos(y))','x','y');用matlab怎么解这两个方程啊?
题目详情
matlab解方程组
syms R0 t x1 x2 x y
[X,Y]=solve('R0*cos(t)=x2+(x2-x1)*(x*cos(y)-1)/(x^2+1-2*x*cos(y))','R0*sin(t)=(x2-x1)*x*sin(y)/(x^2+1-2*x*cos(y))','x','y');
用matlab怎么解这两个方程啊?
syms R0 t x1 x2 x y
[X,Y]=solve('R0*cos(t)=x2+(x2-x1)*(x*cos(y)-1)/(x^2+1-2*x*cos(y))','R0*sin(t)=(x2-x1)*x*sin(y)/(x^2+1-2*x*cos(y))','x','y');
用matlab怎么解这两个方程啊?
▼优质解答
答案和解析
syms R0 t x1 x2 x y
eq1=R0*cos(t)==x2+(x2-x1)*(x*cos(y)-1)/(x^2+1-2*x*cos(y));
eq2=R0*sin(t)==(x2-x1)*x*sin(y)/(x^2+1-2*x*cos(y));
[X,Y]=solve(eq1,eq2,x,y);
simplify(X)
simplify(Y)
X = +-
((cos(t) + 1)*(((R0^2 + x1^2 - 2*R0*x1*(2*cos(t/2)^2 - 1))*(R0^2 + x2^2 - 2*R0*x2*(2*cos(t/2)^2 - 1)))/cos(t/2)^4)^(1/2))/(2*(R0^2 - 2*cos(t)*R0*x2 + x2^2))
= +-
(1 + Cos[t]) Sqrt[(R0^2 + x1^2 - 2 R0 x1 Cos[t])/( R0^2 + x2^2 - 2 R0 x2 Cos[t])] Sec[t/2]^2 /2
Y =
2*atan((2*(((R0^2 - 2*cos(t)*R0*x1 + x1^2)*(R0^2 - 2*cos(t)*R0*x2 + x2^2))/(cos(t) + 1)^2)^(1/2) - R0*x1 - R0*x2 + x1*x2 + R0^2 + R0^2*tan(t/2)^2 + R0*x1*tan(t/2)^2 + R0*x2*tan(t/2)^2 + x1*x2*tan(t/2)^2)/(2*R0*tan(t/2)*(x1 - x2)))
或
2*atan((x1*x2 - R0*x1 - R0*x2 - 2*(((R0^2 - 2*cos(t)*R0*x1 + x1^2)*(R0^2 - 2*cos(t)*R0*x2 + x2^2))/(cos(t) + 1)^2)^(1/2) + R0^2 + R0^2*tan(t/2)^2 + R0*x1*tan(t/2)^2 + R0*x2*tan(t/2)^2 + x1*x2*tan(t/2)^2)/(2*R0*tan(t/2)*(x1 - x2)))
eq1=R0*cos(t)==x2+(x2-x1)*(x*cos(y)-1)/(x^2+1-2*x*cos(y));
eq2=R0*sin(t)==(x2-x1)*x*sin(y)/(x^2+1-2*x*cos(y));
[X,Y]=solve(eq1,eq2,x,y);
simplify(X)
simplify(Y)
X = +-
((cos(t) + 1)*(((R0^2 + x1^2 - 2*R0*x1*(2*cos(t/2)^2 - 1))*(R0^2 + x2^2 - 2*R0*x2*(2*cos(t/2)^2 - 1)))/cos(t/2)^4)^(1/2))/(2*(R0^2 - 2*cos(t)*R0*x2 + x2^2))
= +-
(1 + Cos[t]) Sqrt[(R0^2 + x1^2 - 2 R0 x1 Cos[t])/( R0^2 + x2^2 - 2 R0 x2 Cos[t])] Sec[t/2]^2 /2
Y =
2*atan((2*(((R0^2 - 2*cos(t)*R0*x1 + x1^2)*(R0^2 - 2*cos(t)*R0*x2 + x2^2))/(cos(t) + 1)^2)^(1/2) - R0*x1 - R0*x2 + x1*x2 + R0^2 + R0^2*tan(t/2)^2 + R0*x1*tan(t/2)^2 + R0*x2*tan(t/2)^2 + x1*x2*tan(t/2)^2)/(2*R0*tan(t/2)*(x1 - x2)))
或
2*atan((x1*x2 - R0*x1 - R0*x2 - 2*(((R0^2 - 2*cos(t)*R0*x1 + x1^2)*(R0^2 - 2*cos(t)*R0*x2 + x2^2))/(cos(t) + 1)^2)^(1/2) + R0^2 + R0^2*tan(t/2)^2 + R0*x1*tan(t/2)^2 + R0*x2*tan(t/2)^2 + x1*x2*tan(t/2)^2)/(2*R0*tan(t/2)*(x1 - x2)))
看了 matlab解方程组syms...的网友还看了以下:
x-2的算术平方根+2-x的算术平方根,x=?x-2的算术平方根+2-x的算术平方根,x=?x-2 2020-05-16 …
matlab求解方程2*x-3*x(1-exp((x*y-3*x-2)^1.2))+7-y;x范围 2020-05-16 …
1.分式方程3x+1/x²-1=2/x+1-1/x-1的最简公分母是2.方程2/x-3=1的解是方 2020-05-20 …
问几道关于分式方程的数学题已知1/(x-1)=2,则2/(x-1)+x-1的值是多少?若方程1/( 2020-06-06 …
1.已知关于x的方程2(x+1)=3(x-1)的解为x=a+2求方程22(x+3)-3(x-a)= 2020-07-14 …
2m*x的立方+3nx*y的方加2*x的三次方-x*y方RT已知此式不含三项式思路怎么解?化简== 2020-07-31 …
来、分式方程、+20分.4--15题要检验.1.分式方程2/x-2-3/x=0的解是2.如果分式2 2020-08-02 …
解方程和比较大小怎么算?1.若4^x-4^y=48,且2^(x+y)=32,则3x-4y=多少?( 2020-08-02 …
一.用直接开方法解一元二次方程2(x+3)²-4=0(3x-2)(3x+2)=8(5-2x)²=9 2020-08-03 …
(1/4)下列方程中,是关于x的一元二次方程的是A.3(x+1)平方=2(x+1)B.x分之1平方+ 2021-01-28 …