How to get the exact value in final result

How to get the exact value in final result, it's shows like (0.685577670878144 - 4.31922663726209e-253i)

댓글 수: 3

Meghana Dinesh
Meghana Dinesh 2016년 2월 5일
편집: Meghana Dinesh 2016년 2월 5일
What are you expecting?
And what calculation are you doing?
I expecting the final result are 06855, 2.446369 like this. I calculate the eigenvalue.

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2016년 2월 8일

1 개 추천

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일

0 개 추천

from the complex result (0.685577670878144 - 4.31922663726209e-253i) you can extract the real value by
real(0.685577670878144 - 4.31922663726209e-253i)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2016년 2월 5일

답변:

2016년 2월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by