matlab解数值分析题p=(x-1)*(x-2)*(x-3)*(x-4)*(x-5)*(x-6)*(x-7)*(x-8)*(x-9)*(x-10)*(x-11)*(x-12)*(x-13)*(x-14)*(x-15)*(x-16)*(x-17)*(x-18)*(x-19)*(x-20)解为1,2,3……,20取多个非常小的数用软件工具求解方程p(x)+n*x^19=0,并
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 09:18:11
matlab解数值分析题p=(x-1)*(x-2)*(x-3)*(x-4)*(x-5)*(x-6)*(x-7)*(x-8)*(x-9)*(x-10)*(x-11)*(x-12)*(x-13)*(x-14)*(x-15)*(x-16)*(x-17)*(x-18)*(x-19)*(x-20)解为1,2,3……,20取多个非常小的数用软件工具求解方程p(x)+n*x^19=0,并
matlab解数值分析题
p=(x-1)*(x-2)*(x-3)*(x-4)*(x-5)*(x-6)*(x-7)*(x-8)*(x-9)*(x-10)*(x-11)*(x-12)*(x-13)*(x-14)*(x-15)*(x-16)*(x-17)*(x-18)*(x-19)*(x-20)解为1,2,3……,20
取多个非常小的数用软件工具求解方程p(x)+n*x^19=0,并对计算结果进行分析
matlab解数值分析题p=(x-1)*(x-2)*(x-3)*(x-4)*(x-5)*(x-6)*(x-7)*(x-8)*(x-9)*(x-10)*(x-11)*(x-12)*(x-13)*(x-14)*(x-15)*(x-16)*(x-17)*(x-18)*(x-19)*(x-20)解为1,2,3……,20取多个非常小的数用软件工具求解方程p(x)+n*x^19=0,并
n=1e-6
>> X2=solve('(x-1)*(x-2)*(x-3)*(x-4)*(x-5)*(x-6)*(x-7)*(x-8)*(x-9)*(x-10)*(x-11)*(x-12)*(x-13)*(x-14)*(x-15)*(x-16)*(x-17)*(x-18)*(x-19)*(x-20)+1e-6*x^19=0',x);
double(X2)
ans =
5.9999
4.0000
7.0026
7.9484
3.0000
5.0000
1.0000
2.0000
21.3025 - 1.5672i
18.5028 - 3.6004i
12.4866 - 2.8828i
10.5227 + 1.7197i
15.1651 + 3.7612i
21.3025 + 1.5672i
15.1651 - 3.7612i
10.5227 - 1.7197i
18.5028 + 3.6004i
9.0448 + 0.5955i
9.0448 - 0.5955i
12.4866 + 2.8828i