Roots function is solving eigth order polynomial equation as fifth order.
1 回表示 (過去 30 日間)
古いコメントを表示
I have an equation :
Using coeffs(), i get their coefficients, flip them left to right and then use roots() function to get its zeroes.
But, when , coeffs() function gives coeffs of non-zero terms only,
that is, for fliplr(coeffs(fn)) = [a,c,e,g,i]
So, when I put this coeffs() solution in roots(), it considers it as fifth order polynomial.
How can I get around this problem?
2 件のコメント
採用された回答
Steven Lord
2019 年 9 月 14 日
Specify the 'All' option in your call to coeffs to return all the coefficients, even those that are 0.
0 件のコメント
その他の回答 (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!