Finding coefficients of a polynomial from roots

3 Ansichten (letzte 30 Tage)
Ahsan Zamee
Ahsan Zamee am 18 Feb. 2015
Beantwortet: Roger Stafford am 18 Feb. 2015
I have roots of a third order system. Now i need a function to get co-efficients of the polynomial for those roots. Thanks in advance

Antworten (1)

Roger Stafford
Roger Stafford am 18 Feb. 2015
If r1, r2, and r3 are the roots, then a polynomial with those roots is:
p(x) = (x-r1)*(x-r2)*(x-r3) = x^3-(r1+r2+r3)*x^2+(r2*r3+r3*r1+r1*r2)*x-r1*r2*r3

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