Complex eigenvalues for hermitian matrix
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Neelesh Kumar Vij
am 1 Jul. 2019
Kommentiert: Matt J
am 1 Jul. 2019
I have been trying to find the eigenenergies the Hamiltonian using the eig() function
% constants and parameters
hbar = 6.58211*10^-4;
w1 = 2000/hbar;
w2 = 2001/hbar;
syms wph;
g = 120;
pump = 10;
% the hamiltonian
h = [w1-wph pump 0;
pump w1-wph g;
0 g w2];
This gives complex valued eigenenergies in terms of the parameter wph. This was expected because Matlab might be using an algorithm sue to which this happens. I also expected that when I plot these values against wph, they should be real but instead they come out to be complex valued with a fairly big imaginary part (code attached).
Can anyone explain why this is happening? The hamiltonian is hermitian and thus should have real eigenenergies which is not happening.
2 Kommentare
Akzeptierte Antwort
Matt J
am 1 Jul. 2019
Bearbeitet: Matt J
am 1 Jul. 2019
I suspect it is because you lack the float precision with which to crunch those huge integers in your expressions, like 17373258711169930298161307553886039650995152377.
Why exactly are you using symbolic (as oposed to numeric) eigenvalue analysis here?
4 Kommentare
Matt J
am 1 Jul. 2019
You're welcome, but please Accept-click the answer to signify that it solved your problem.
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!.png)
.png)
.png)
.png)
.png)
.png)
