How to find the root of a polynomial

1 回表示 (過去 30 日間)
Morne' Breitenbach
Morne' Breitenbach 2020 年 6 月 5 日
コメント済み: Star Strider 2020 年 6 月 5 日
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?

採用された回答

Star Strider
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 件のコメント
Morne' Breitenbach
Morne' Breitenbach 2020 年 6 月 5 日
Awesome, Thanks!
Star Strider
Star Strider 2020 年 6 月 5 日
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by