|a1'| |a11 a12| |a1| |k1||a2'|= |a21 a22| |a2| + |k2| ①|b1'| |a11 a12| |b1| |k1||b2'|= |a21 a22| |b2| + |k2| ②|c1'| |a11 a12| |c1| |k1||c2'|= |a21 a22| |c2| + |k2| ③解三个方程组,求a11,a12,a21,a22,k1,k2的值,对了再加分.谢谢(^o^)ly
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/24 16:42:12
|a1'| |a11 a12| |a1| |k1||a2'|= |a21 a22| |a2| + |k2| ①|b1'| |a11 a12| |b1| |k1||b2'|= |a21 a22| |b2| + |k2| ②|c1'| |a11 a12| |c1| |k1||c2'|= |a21 a22| |c2| + |k2| ③解三个方程组,求a11,a12,a21,a22,k1,k2的值,对了再加分.谢谢(^o^)ly
|a1'| |a11 a12| |a1| |k1|
|a2'|= |a21 a22| |a2| + |k2| ①
|b1'| |a11 a12| |b1| |k1|
|b2'|= |a21 a22| |b2| + |k2| ②
|c1'| |a11 a12| |c1| |k1|
|c2'|= |a21 a22| |c2| + |k2| ③
解三个方程组,求a11,a12,a21,a22,k1,k2的值,对了再加分.
谢谢(^o^)lyftcl85
其实是需要把解这方程组的方法,编成C++的,想知道解的过程,
不懂MATLAB...((((^_^;)
|a1'| |a11 a12| |a1| |k1||a2'|= |a21 a22| |a2| + |k2| ①|b1'| |a11 a12| |b1| |k1||b2'|= |a21 a22| |b2| + |k2| ②|c1'| |a11 a12| |c1| |k1||c2'|= |a21 a22| |c2| + |k2| ③解三个方程组,求a11,a12,a21,a22,k1,k2的值,对了再加分.谢谢(^o^)ly
还真不知道C怎么编……你去C语言区问问吧.
我用的是mathematica,把6个方程老老实实输入就得到解了.
解如下:
a11=-(a2b1'-a1'b2-a2c1'+b2c1'+a1'c2-b1'c2)/(-a2b1+a1b2+a2c1-b2c1-a1c2+b1c2)
a12=-(a1'b1-a1b1'-a1'c1+b1'c1+a1c1'-b1c1')/(-a2b1+a1b2+a2c1-b2c1-a1c2+b1c2)
a21=-(a2'b2-a2b2'-a2'c2+b2'c2+a2c2'-b2c2')/(a2b1-a1b2-a2c1+b2c1+a1c2-b1c2)
a22=-(-a2'b1+a1b2'+a2'c1-b2'c1-a1c2'+b1c2')/(a2b1-a1b2-a2c1+b2c1+a1c2-b1c2)
k1=-(-a2b1'c1+a1'b2c1+a2b1c1'-a1b2c1'-a1'b1c2+a1b1'c2)/(-a2b1+a1b2+a2c1-b2c1-a1c2+b1c2)
k2=-(-a2'b2c1+a2b2'c1+a2'b1c2-a1b2'c2-a2b1c2'+a1b2c2')/(a2b1-a1b2-a2c1+b2c1+a1c2-b1c2)
[a11,a12,a21,a22,k1,k2]=solve('a11*a1+a12*a2+k1-a10','a11*b1+a12*b2+k1-b10','a11*c1+a12*c2+k1-c10','a21*a1+a22*a2+k2-a20','a21*b1+a22*b2+k2-b20','a21*c1+a22*c2+k2-c20')
用这样一个MATLAB函数求解,但是答案是:
...
全部展开
[a11,a12,a21,a22,k1,k2]=solve('a11*a1+a12*a2+k1-a10','a11*b1+a12*b2+k1-b10','a11*c1+a12*c2+k1-c10','a21*a1+a22*a2+k2-a20','a21*b1+a22*b2+k2-b20','a21*c1+a22*c2+k2-c20')
用这样一个MATLAB函数求解,但是答案是:
Warning: Explicit solution could not be found.%不可解
> In solve at 140
a11 =
[ empty sym ]
a12 =
[]
a21 =
[]
a22 =
[]
k1 =
[]
k2 =
[]
把这个问题分开,只求一半:
>> [a11,a12,k1]=solve('a11*a1+a12*a2+k1-a10','a11*b1+a12*b2+k1-b10','a11*c1+a12*c2+k1-c10')
Warning: Explicit solution could not be found.
> In solve at 140
a11 =
[ empty sym ]
a12 =
[]
k1 =
[]
仍然无解。
但代入部分数字之后可解,考虑为MATLAB的局限性或其他问题。。。没能解决问题,汗颜。。。
收起