How to find the root of a polynomial
1 次查看(过去 30 天)
显示 更早的评论
I have this polynomial: P(z) = z.^9 + z.^8 - z.^7 + z.^6 - z.^5 + z + 1
And I'd like to find the roots for it.
How would I go about doing that?
0 个评论
采纳的回答
Star Strider
2020-6-5
Easiest:
syms z
P(z) = z.^9 + z.^8 - z.^7 + z.^6 - z.^5 + z + 1;
rts = vpasolve(P)
Otherwise:
rts = roots([1 1 -1 1 -1 0 0 0 1 1]);
With the same essential result.
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!