フィルターのクリア

How to get the exact value in final result

7 ビュー (過去 30 日間)
eswarsakhamuri
eswarsakhamuri 2016 年 2 月 5 日
回答済み: Walter Roberson 2016 年 2 月 8 日
How to get the exact value in final result, it's shows like (0.685577670878144 - 4.31922663726209e-253i)
  3 件のコメント
Walter Roberson
Walter Roberson 2016 年 2 月 5 日
And what calculation are you doing?
eswarsakhamuri
eswarsakhamuri 2016 年 2 月 8 日
I expecting the final result are 06855, 2.446369 like this. I calculate the eigenvalue.

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

回答 (2 件)

Walter Roberson
Walter Roberson 2016 年 2 月 8 日
You will need to use the symbolic toolbox to get the exact result. You will need to pass exact inputs into the symbolic eig function, so you will need to determine what the exact value is that corresponds to each of your floating point inputs. For example is 1.23 exactly 123/100 or is 1.23 representing the range 1225/1000 inclusive to 1235/1000 exclusive? Only if you have exact inputs can you hope to get out an exact result.

Stalin Samuel
Stalin Samuel 2016 年 2 月 8 日
編集済み: Walter Roberson 2016 年 2 月 8 日
from the complex result (0.685577670878144 - 4.31922663726209e-253i) you can extract the real value by
real(0.685577670878144 - 4.31922663726209e-253i)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by