我正在尝试求解一个 16 变量线性方程。我在 Matlab 中尝试过,但它说找不到解决方案。有没有一种有效的方法来解决方程。
The equations are
a = a^2+e^2+i^2+m^2,
b = a*b+e*f+I*j+m*n,
c = a*c+e*g+I*k+m*o,
d = a*d+e*h+I*l+m*p,
e = a*b+e*f+I*j+m*n,
f = b^2+f^2+j^2+n^2,
g = b*c+f*g+j*k+n*o,
h = b*d+f*h+j*i+n*p,
i = c*a+g*e+I*k+o*m,
j = c*b+g*f+k*j+o*n,
k = c^2+g^2+k^2+o^2,
l = c*d+g*h+k*l+o*p,
m = d*a+h*e+i*l+p*m,
n = d*b+h*f+l*j+p*n,
o = d*c+h*g+l*k+p*o,
p = d^2+h^2+l^2+p^2
在 MATLAB 中,我按照下面提到的方式进行了尝试,
>> syms a b c d e f g h i j k l m n o p
>> e1 = a^2+e^2+i^2+m^2 == a;
>> e2 = a*b+e*f+i*j+m*n == b;
>> e3 = a*c+e*g+i*k+m*o == c;
>> e4 = a*d+e*h+i*l+m*p == d;
>> e5 = a*b+e*f+i*j+m*n == e;
>> e6 = b^2+f^2+j^2+n^2 == f;
>> e7 = b*c+f*g+j*k+n*o == g;
>> e8 = b*d+f*h+j*i+n*p == h;
>> e9 = c*a+g*e+k*i+o*m == i;
>> e10 = c*b+g*f+k*j+o*n == j;
>> e11 = c^2+g^2+k^2+o^2 == k;
>> e12 = c*d+g*h+k*l+o*p == l;
>> e13 = d*a+h*e+l*i+p*m == m;
>> e14 = d*b+h*f+l*j+p*n == n;
>> e15 = d*c+h*g+l*k+p*o == o;
>> e16 = d^2+h^2+l^2+p^2 == p;
>> sol = solve([e1,e2,e3,e4,e5,e6,e7,e8,e9,e10,e11,e12,e13,e14,e15,e16],[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p]);
警告:无法找到明确的解决方案。有关选项,请参阅帮助。
在 sym/solve 中(第 317 行)