How to get the exact value in final result
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How to get the exact value in final result, it's shows like (0.685577670878144 - 4.31922663726209e-253i)
3 commentaires
Réponses (2)
Walter Roberson
le 8 Fév 2016
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.
0 commentaires
Stalin Samuel
le 8 Fév 2016
Modifié(e) : Walter Roberson
le 8 Fév 2016
from the complex result (0.685577670878144 - 4.31922663726209e-253i) you can extract the real value by
real(0.685577670878144 - 4.31922663726209e-253i)
0 commentaires
Voir également
Catégories
En savoir plus sur Linear Algebra dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!