早教吧作业答案频道 -->数学-->
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(a-x)(x-b)-mn(a-x)(b-x)的公因式是什么.不.选择里没有A.x(a-x)B 2020-04-08 …
关于同阶无穷小的问题A=(1-x)/(1+x),B=1-x~0.5.则当x趋于1时,A与B是同阶无 2020-05-13 …
设集合A={X|-1小于等于X小于2},B={X|X小于a},若A交B不等于空集,求a取值范围为什 2020-05-15 …
一,已知A={x|x=k/4+1/2,k∈Z} B={x|x=k/8+1/4,k∈Z}那么集合A与 2020-05-16 …
因为(x+a)(x+b)=x的平方+(a+b)x+ab,又因为整式乘法与因式分解互为逆运算,则x的 2020-06-03 …
导数相关的题.1.当K取何值时,分段函数:x不等于0时,f(x)=x的k次方乘以sin(1/x), 2020-06-11 …
设f:A→B是A到B的一个映射,其中A=B={(x,y)∣x,y∈R},f:(x,y)→(x-y, 2020-06-18 …
A=R,B={x|x大于0},f:x→y=|x|是从集合A到集合B的函数.集合A和集合B的元素符号 2020-06-27 …
下列各式,正确的是() A.(-2x)的3次方=-8x的3次方 B.x²×x²=2x² C.x+x 2020-06-27 …
求函数的驻点f'x(x,y)=2xy(4-x-y)-x^2y=0.(1)其中f'x(x,y)中左边 2020-07-11 …