matlab如何解一元六次方程组如何求求解一元六次方程组 3 +12 +4 +7 +8x+1=0 的根这样做对不>> a=[3,12,4,7,0,8,1];>> p = poly(a)p =Columns 1 through 7 1 -35 471 -3085 10184 -15600 8064Column 8 0>> r = roots(p)r =012.00008.00007.00004.00003.00001.0000>>方程组是这样的3x6 +12x5 +4x4+7x3+8x+1=0

问题描述:

matlab如何解一元六次方程组
如何求求解一元六次方程组 3 +12 +4 +7 +8x+1=0 的根
这样做对不
>> a=[3,12,4,7,0,8,1];
>> p = poly(a)
p =
Columns 1 through 7
1 -35 471 -3085 10184 -15600 8064
Column 8
0
>> r = roots(p)
r =
0
12.0000
8.0000
7.0000
4.0000
3.0000
1.0000
>>
方程组是这样的
3x6 +12x5 +4x4+7x3+8x+1=0

这样:a=[3,12,4,7,0,8,1]; r=roots(a)r =-3.8230 -0.5275 + 0.8497i-0.5275 - 0.8497i0.5007 + 0.6749i0.5007 - 0.6749i-0.1234 可以验证,如:b=[1 -2 1];x=roots(b)x =11