Filter löschen
Filter löschen

Compute the roots of a general nth-degree polynomial

6 Ansichten (letzte 30 Tage)
Jiapeng
Jiapeng am 8 Dez. 2022
Beantwortet: Sam Chak am 8 Dez. 2022
A = [ ];
a = compan(A);
e = eig(a);
I am trying to find the roots of a general polynomial of degree n using the eigenvalues of the companion matrix. What statement should I use next?

Akzeptierte Antwort

Sam Chak
Sam Chak am 8 Dez. 2022
The following article shows you a few methods to find the roots of a polynomial.
A = 1:2:7
A = 1×4
1 3 5 7
a = compan(A)
a = 3×3
-3 -5 -7 1 0 0 0 1 0
eig(a)
ans =
-2.1795 + 0.0000i -0.4102 + 1.7445i -0.4102 - 1.7445i
roots(A)
ans =
-2.1795 + 0.0000i -0.4102 + 1.7445i -0.4102 - 1.7445i

Weitere Antworten (0)

Kategorien

Mehr zu Linear Algebra finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by