1樓:匿名使用者
x1=-226.11;
y1=238.802;
z1=-1577;
x2=223.1317;
y2=201.5533;
z2=-1577;
x3=-277.2719;
y3=-202.0605;
z3=-1577;
與求解方程組:
(t1*x1-t2*x2)^2+(t1*y1-t2*y2)^2+(t1*z1-t2*z2)^2=532.8689^2
(t1*x1-t3*x3)^2+(t1*y1-t3*y3)^2+(t1*z1-t3*z3)^2=532.8689^2
(t3*x3-t2*x2)^2+(t3*y3-t2*y2)^2+(t3*z3-t2*z2)^2=753.5904^2
從中解出t1,t2,t3
只需要解出近似解就可以了,solve解不出來的。
2樓:悲劇
x1=-226.11;
y1=238.802;
z1=-1577;
x2=223.1317;
y2=201.5533;
z2=-1577;
x3=-277.2719;
y3=-202.0605;
z3=-1577;
syms t1 t2 t3
eq1=(t1*x1-t2*x2)^2+(t1*y1-t2*y2)^2+(t1*z1-t2*z2)^2-532.8689^2;
eq2=(t1*x1-t3*x3)^2+(t1*y1-t3*y3)^2+(t1*z1-t3*z3)^2-532.8689^2;
eq3=(t3*x3-t2*x2)^2+(t3*y3-t2*y2)^2+(t3*z3-t2*z2)^2-753.5904^2;
[t1 t2 t3]=solve(eq1,eq2,eq3,'t1','t2','t3')
樓主我用solve可以解出解來,你參考一下
三元二次方程組的解法,三元二次方程組怎樣解
a b 5ab a c 6ac b c 7bc a b 5ab,a b 5ab 0,a 1 5b b,a b 5b 1 b c 7bc,7bc c b,c 7b 1 b,c b 7b 1 把a b 5b 1 c b 7b 1 代入 a c 6ac,b 5b 1 b 7b 1 6 b 5b 1 b 7...
用MATLAB畫四元二次方程影象跪謝
x 2 1 1 y 2 1 1 xx yy meshgrid x,y z 2 1 1 for i 1 31 zz 1074.64 2.28.xx 49.09.yy 7.07 z i 8.04.xx.yy 2.21.xx z i 2.29.yy.z i 29.82.xx.bai2 9.20.yy.2 ...
怎麼用python解一元二次方程
import scipy.optimizeimport sympy print scipy.optimize.fsolve lambda x x 2 2 x 1,0 print sympy.solve x 2 2 x 1 spicy.optimize.fsolve求數值解需要給定初值必要需要選定求解...