作业帮 > 综合 > 作业

matlab中多项式求解是用什么算法实现的?

来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/17 19:18:02
matlab中多项式求解是用什么算法实现的?
我问的是内部的算法啊,不是matlab怎么编程.
matlab中多项式求解是用什么算法实现的?
= roots(c);
Algorithm:
The algorithm simply involves computing the eigenvalues of the companion matrix:
A = diag(ones(n-1,1),-1);
A(1,:) = -c(2:n+1)./c(1);
eig(A)
It is possible to prove that the results produced are the exact eigenvalues of a matrix within roundoff error of the companion matrix A, but this does not mean that they are the exact roots of a polynomial with coefficients within roundoff error of those in c.