Finding coefficients of a polynomial from roots
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
Roger Stafford
2015년 2월 18일
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
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Polynomials에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!