How to find the root of a polynomial

2 Ansichten (letzte 30 Tage)
Morne' Breitenbach
Morne' Breitenbach am 5 Jun. 2020
Kommentiert: Star Strider am 5 Jun. 2020
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?

Akzeptierte Antwort

Star Strider
Star Strider am 5 Jun. 2020
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 Kommentare
Morne' Breitenbach
Morne' Breitenbach am 5 Jun. 2020
Awesome, Thanks!
Star Strider
Star Strider am 5 Jun. 2020
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Polynomials finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by