Finding roots of symbolic polynomial on given interval

5 ビュー (過去 30 日間)
Argento
Argento 2016 年 4 月 8 日
編集済み: Argento 2016 年 4 月 8 日
Hello all, I am trying to find all the roots of a symbolic polynomial on the given interval [0, 1].
For my function, the plot shows 11 roots in the interval. I have been trying to no avail. This is what I have:
g(x) = 2097152*x^11 - 11534336*x^10 + 27394048*x^9 - 36765696*x^8 + 30638080*x^7 - 16400384*x^6 + 5637632*x^5 - 1208064*x^4 + 151008*x^3 - 9680*x^2 + 242*x - 1;
Ideally, I would need to put these roots in a vector. Thanks for the guidance.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 8 日
編集済み: Azzi Abdelmalek 2016 年 4 月 8 日
syms x
g = 2097152*x^11 - 11534336*x^10 + 27394048*x^9 - 36765696*x^8 + 30638080*x^7 - 16400384*x^6 + 5637632*x^5 - 1208064*x^4 + 151008*x^3 - 9680*x^2 + 242*x - 1
c=sym2poly(g)
r=roots(c)
  1 件のコメント
Argento
Argento 2016 年 4 月 8 日
編集済み: Argento 2016 年 4 月 8 日
Thank you Azzi, just seconds before your answer I also found the following method:
vpa(solve(g(x), x))
Many thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by