8款精选AI论文工具横向实测,本硕博避坑必备指南
2026/9/6 3:26:41
% 符号变量定义 syms x % 两个多项式 % f=x^4 -5*x^3 +6*x^2 +4*x -8;% g=x^3 -6*x^2 +11*x -6;f=(x-1j)*(x-2)*(x+3)*(x-5);g=(x-2)*(x+3)*(x-1j);roots(sym2poly(f))roots(sym2poly(g))% 计算最大公因式 gcd_fg=gcd(f, g);%辗转相除法 % 提取公因式的根(所有公共根)roots(sym2poly(gcd_fg))