How to find the root of a polynomial

조회 수: 4 (최근 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 CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by