请帮助用matlab算一下三个方程的全部根,谢谢。
KITTy
2024-11-16 02:23:55
最佳回答
代码: clc;clear;p1=[537265,0,0,0,0,-7752905,7215640];p2=[537265,0,0,0,0,-6879917,6342652];p3=[537265,0,0,0,0,-6195671,5658406];x1=roots(p1);x2=roots(p2);x3=roots(p3);x1 x2 x3 结果: x1= 1.5271+1.0207i 1.5271-1.0207i 0.3522+1.6808i 0.3522-1.6808i 1.3498+0.0000i 1.0000+0.0000i x2=... 20210311