How to set the terminal condition of the Matlab built-in function roots?

2 ビュー (過去 30 日間)
jun zeng
jun zeng 2020 年 7 月 29 日
コメント済み: jun zeng 2020 年 8 月 1 日
like this.

採用された回答

Steven Lord
Steven Lord 2020 年 7 月 29 日
You don't. roots builds the companion matrix and computes the eigenvalues of that matrix.
I can't see the context before that section of that paper or assignment but I'm guessing the process was to repeatedly create a polynomal coefficient vector, use roots to solve it, and stop the repetition if one / the smallest of the roots of the current coefficient vector became "small enough." That uses the output of roots as part of the temination criteria for the process, but it doesn't try to control roots itself.
  1 件のコメント
jun zeng
jun zeng 2020 年 8 月 1 日
thanks for your patient answers. you're right. i will going to try it again. Thanks!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by