Why am I getting negative zero as an eigen value while using the 'eig' function?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Prajit T R
am 6 Apr. 2018
Beantwortet: Steven Lord
am 6 Apr. 2018
Hi all
I ran the following code which makes use of the 'eig' function and I encountered a negative zero in the value printed out by it. Is this valid? If yes, what does the negative sign signify?
a=[1 2 3;1 2 3; 1 2 3]
eig(a)
This gives me the following output:
ans =
6.0000
0.0000
-0.0000
Thanks in advance.
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 6 Apr. 2018
Change your display format and you'll see that the third element of that vector is very small in magnitude and negative but not exactly 0.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Linear Algebra finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!