Noise in Eigenvalues plot Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Problem with plotting eigenvaluesHow to overlay ListPlot on a ContourPlot with correct range?Trying to find intersection of 3 functions graphicallySome glitch in the Plot: Two approaches for plotting give different resultsDEigenvalues with Robin B.C. sign problemHow can I add a custom color function and a custom mesh to a 3D parametric plot?How do I plot $y=8 sin(2 pi / 3)$?Plotting eigenvalues in one plot for three different parametersEigenvalues of a non-Hermitian complex periodic potentialHow to compute eigenvalues of a large symbolic matrix?
What is a more techy Technical Writer job title that isn't cutesy or confusing?
My mentor says to set image to Fine instead of RAW — how is this different from JPG?
Should man-made satellites feature an intelligent inverted "cow catcher"?
What does 丫 mean? 丫是什么意思?
Problem with display of presentation
Why not use the yoke to control yaw, as well as pitch and roll?
Flight departed from the gate 5 min before scheduled departure time. Refund options
Centre cell vertically in tabularx
3D Masyu - A Die
Determine whether an integer is a palindrome
Random body shuffle every night—can we still function?
How to achieve cat-like agility?
Is Normal(mean, variance) mod x still a normal distribution?
Is this Half dragon Quaggoth Balanced
Why do C and C++ allow the expression (int) + 4?
What did Turing mean when saying that "machines cannot give rise to surprises" is due to a fallacy?
Table formatting with tabularx?
How to resize main filesystem
Maximum duration for Canada's short term visas?
Does the Rock Gnome trait Artificer's Lore apply when you aren't proficient in History?
How does TikZ render an arc?
Keyboard layout stuck into CZ_german no english layout after update, restore into original EN_us and EL_Gr ones
Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?
Vertical ranges of Column Plots in 12
Noise in Eigenvalues plot
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Problem with plotting eigenvaluesHow to overlay ListPlot on a ContourPlot with correct range?Trying to find intersection of 3 functions graphicallySome glitch in the Plot: Two approaches for plotting give different resultsDEigenvalues with Robin B.C. sign problemHow can I add a custom color function and a custom mesh to a 3D parametric plot?How do I plot $y=8 sin(2 pi / 3)$?Plotting eigenvalues in one plot for three different parametersEigenvalues of a non-Hermitian complex periodic potentialHow to compute eigenvalues of a large symbolic matrix?
$begingroup$
I am trying to Plot Eigenvalues of a Hamiltonian, but I am getting noisy plot, which is incorrect. Here is the code.
A1 = 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0;
A2 = 0, -I, 0, 0, I, 0, 0, 0, 0, 0, 0, -I, 0, 0, I, 0;
A3 = 0, 0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, 0;
A4 = 0, -I, 0, 0, I, 0, 0, 0, 0, 0, 0, I, 0, 0, -I, 0;
A5 = 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1;
A6 = 0, 0, 0, -I, 0, 0, I, 0, 0, -I, 0, 0, I, 0, 0, 0;
A7 = 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0;
A8 = 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1;
H[d_, λ_, β_, m_] :=
a (Sin[x] A1 + Sin[ky] A2) + A3 β +
d A4 + (t Cos[z] + 2 b (2 - Cos[x] - Cos[ky])) A5 + α*
Sin[ky] A6 + λ Sin[z] A7+m*A8;
ky = 0;
a = 1;
b = 1;
t = 1.5;
α = 0.3;
Plot3D[Eigenvalues[H[0.1, 0.5, 0.7, 0]][[4]], x, -π, π, z, 0, 2 π]

Any help will be highly appreciated.
plotting eigenvalues
$endgroup$
add a comment |
$begingroup$
I am trying to Plot Eigenvalues of a Hamiltonian, but I am getting noisy plot, which is incorrect. Here is the code.
A1 = 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0;
A2 = 0, -I, 0, 0, I, 0, 0, 0, 0, 0, 0, -I, 0, 0, I, 0;
A3 = 0, 0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, 0;
A4 = 0, -I, 0, 0, I, 0, 0, 0, 0, 0, 0, I, 0, 0, -I, 0;
A5 = 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1;
A6 = 0, 0, 0, -I, 0, 0, I, 0, 0, -I, 0, 0, I, 0, 0, 0;
A7 = 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0;
A8 = 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1;
H[d_, λ_, β_, m_] :=
a (Sin[x] A1 + Sin[ky] A2) + A3 β +
d A4 + (t Cos[z] + 2 b (2 - Cos[x] - Cos[ky])) A5 + α*
Sin[ky] A6 + λ Sin[z] A7+m*A8;
ky = 0;
a = 1;
b = 1;
t = 1.5;
α = 0.3;
Plot3D[Eigenvalues[H[0.1, 0.5, 0.7, 0]][[4]], x, -π, π, z, 0, 2 π]

Any help will be highly appreciated.
plotting eigenvalues
$endgroup$
add a comment |
$begingroup$
I am trying to Plot Eigenvalues of a Hamiltonian, but I am getting noisy plot, which is incorrect. Here is the code.
A1 = 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0;
A2 = 0, -I, 0, 0, I, 0, 0, 0, 0, 0, 0, -I, 0, 0, I, 0;
A3 = 0, 0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, 0;
A4 = 0, -I, 0, 0, I, 0, 0, 0, 0, 0, 0, I, 0, 0, -I, 0;
A5 = 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1;
A6 = 0, 0, 0, -I, 0, 0, I, 0, 0, -I, 0, 0, I, 0, 0, 0;
A7 = 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0;
A8 = 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1;
H[d_, λ_, β_, m_] :=
a (Sin[x] A1 + Sin[ky] A2) + A3 β +
d A4 + (t Cos[z] + 2 b (2 - Cos[x] - Cos[ky])) A5 + α*
Sin[ky] A6 + λ Sin[z] A7+m*A8;
ky = 0;
a = 1;
b = 1;
t = 1.5;
α = 0.3;
Plot3D[Eigenvalues[H[0.1, 0.5, 0.7, 0]][[4]], x, -π, π, z, 0, 2 π]

Any help will be highly appreciated.
plotting eigenvalues
$endgroup$
I am trying to Plot Eigenvalues of a Hamiltonian, but I am getting noisy plot, which is incorrect. Here is the code.
A1 = 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0;
A2 = 0, -I, 0, 0, I, 0, 0, 0, 0, 0, 0, -I, 0, 0, I, 0;
A3 = 0, 0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, 0;
A4 = 0, -I, 0, 0, I, 0, 0, 0, 0, 0, 0, I, 0, 0, -I, 0;
A5 = 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1;
A6 = 0, 0, 0, -I, 0, 0, I, 0, 0, -I, 0, 0, I, 0, 0, 0;
A7 = 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0;
A8 = 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1;
H[d_, λ_, β_, m_] :=
a (Sin[x] A1 + Sin[ky] A2) + A3 β +
d A4 + (t Cos[z] + 2 b (2 - Cos[x] - Cos[ky])) A5 + α*
Sin[ky] A6 + λ Sin[z] A7+m*A8;
ky = 0;
a = 1;
b = 1;
t = 1.5;
α = 0.3;
Plot3D[Eigenvalues[H[0.1, 0.5, 0.7, 0]][[4]], x, -π, π, z, 0, 2 π]

Any help will be highly appreciated.
plotting eigenvalues
plotting eigenvalues
edited 55 mins ago
Michael E2
151k12203483
151k12203483
asked 1 hour ago
Hazoor ImranHazoor Imran
213
213
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
By default, the eigenvalues are ordered by absolute value. All the eigenvalues of this particular matrix have the same absolute value plus some rounding errors. Thus, it can easily happen, that the fourth eigenvalue is positive or negative, depending on the parameters.
You can use Max to plot the largest eigenvalue:
Plot3D[Max@Eigenvalues[H[0.1, 0.5, 0.7, 0.]], x, -Pi, Pi, z, 0, 2 Pi]

Alternatively, you may use the "Criteria" suboption of the Method "Arnoldi":
Plot3D[
Eigenvalues[
H[0.1, 0.5, 0.7, 0], -1,
Method -> "Arnoldi", "Criteria" -> "RealPart"
],
x, - Pi, Pi, z, 0, 2 Pi]
$endgroup$
add a comment |
$begingroup$
Not sure why you pick the 4th element, but maybe this will help:
ev4 = Eigenvalues[H[p, q, r, s]][[4]] /.
Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0];
Plot3D[ev4, x, -π, π, z, 0, 2 π]

$endgroup$
$begingroup$
Thanks @ Michael E2, Is it possible to do this with an equation by the contourplot. Like ev4 = Eigenvalues[H[p, q, r, s]][[4]] /. Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0]; ContourPlot[ev4==-0.5, x, -[Pi], [Pi], z, 0, 2 [Pi]]. In my case this is not working.
$endgroup$
– Hazoor Imran
5 mins ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f195721%2fnoise-in-eigenvalues-plot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
By default, the eigenvalues are ordered by absolute value. All the eigenvalues of this particular matrix have the same absolute value plus some rounding errors. Thus, it can easily happen, that the fourth eigenvalue is positive or negative, depending on the parameters.
You can use Max to plot the largest eigenvalue:
Plot3D[Max@Eigenvalues[H[0.1, 0.5, 0.7, 0.]], x, -Pi, Pi, z, 0, 2 Pi]

Alternatively, you may use the "Criteria" suboption of the Method "Arnoldi":
Plot3D[
Eigenvalues[
H[0.1, 0.5, 0.7, 0], -1,
Method -> "Arnoldi", "Criteria" -> "RealPart"
],
x, - Pi, Pi, z, 0, 2 Pi]
$endgroup$
add a comment |
$begingroup$
By default, the eigenvalues are ordered by absolute value. All the eigenvalues of this particular matrix have the same absolute value plus some rounding errors. Thus, it can easily happen, that the fourth eigenvalue is positive or negative, depending on the parameters.
You can use Max to plot the largest eigenvalue:
Plot3D[Max@Eigenvalues[H[0.1, 0.5, 0.7, 0.]], x, -Pi, Pi, z, 0, 2 Pi]

Alternatively, you may use the "Criteria" suboption of the Method "Arnoldi":
Plot3D[
Eigenvalues[
H[0.1, 0.5, 0.7, 0], -1,
Method -> "Arnoldi", "Criteria" -> "RealPart"
],
x, - Pi, Pi, z, 0, 2 Pi]
$endgroup$
add a comment |
$begingroup$
By default, the eigenvalues are ordered by absolute value. All the eigenvalues of this particular matrix have the same absolute value plus some rounding errors. Thus, it can easily happen, that the fourth eigenvalue is positive or negative, depending on the parameters.
You can use Max to plot the largest eigenvalue:
Plot3D[Max@Eigenvalues[H[0.1, 0.5, 0.7, 0.]], x, -Pi, Pi, z, 0, 2 Pi]

Alternatively, you may use the "Criteria" suboption of the Method "Arnoldi":
Plot3D[
Eigenvalues[
H[0.1, 0.5, 0.7, 0], -1,
Method -> "Arnoldi", "Criteria" -> "RealPart"
],
x, - Pi, Pi, z, 0, 2 Pi]
$endgroup$
By default, the eigenvalues are ordered by absolute value. All the eigenvalues of this particular matrix have the same absolute value plus some rounding errors. Thus, it can easily happen, that the fourth eigenvalue is positive or negative, depending on the parameters.
You can use Max to plot the largest eigenvalue:
Plot3D[Max@Eigenvalues[H[0.1, 0.5, 0.7, 0.]], x, -Pi, Pi, z, 0, 2 Pi]

Alternatively, you may use the "Criteria" suboption of the Method "Arnoldi":
Plot3D[
Eigenvalues[
H[0.1, 0.5, 0.7, 0], -1,
Method -> "Arnoldi", "Criteria" -> "RealPart"
],
x, - Pi, Pi, z, 0, 2 Pi]
answered 50 mins ago
Henrik SchumacherHenrik Schumacher
60.7k585171
60.7k585171
add a comment |
add a comment |
$begingroup$
Not sure why you pick the 4th element, but maybe this will help:
ev4 = Eigenvalues[H[p, q, r, s]][[4]] /.
Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0];
Plot3D[ev4, x, -π, π, z, 0, 2 π]

$endgroup$
$begingroup$
Thanks @ Michael E2, Is it possible to do this with an equation by the contourplot. Like ev4 = Eigenvalues[H[p, q, r, s]][[4]] /. Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0]; ContourPlot[ev4==-0.5, x, -[Pi], [Pi], z, 0, 2 [Pi]]. In my case this is not working.
$endgroup$
– Hazoor Imran
5 mins ago
add a comment |
$begingroup$
Not sure why you pick the 4th element, but maybe this will help:
ev4 = Eigenvalues[H[p, q, r, s]][[4]] /.
Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0];
Plot3D[ev4, x, -π, π, z, 0, 2 π]

$endgroup$
$begingroup$
Thanks @ Michael E2, Is it possible to do this with an equation by the contourplot. Like ev4 = Eigenvalues[H[p, q, r, s]][[4]] /. Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0]; ContourPlot[ev4==-0.5, x, -[Pi], [Pi], z, 0, 2 [Pi]]. In my case this is not working.
$endgroup$
– Hazoor Imran
5 mins ago
add a comment |
$begingroup$
Not sure why you pick the 4th element, but maybe this will help:
ev4 = Eigenvalues[H[p, q, r, s]][[4]] /.
Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0];
Plot3D[ev4, x, -π, π, z, 0, 2 π]

$endgroup$
Not sure why you pick the 4th element, but maybe this will help:
ev4 = Eigenvalues[H[p, q, r, s]][[4]] /.
Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0];
Plot3D[ev4, x, -π, π, z, 0, 2 π]

answered 49 mins ago
Michael E2Michael E2
151k12203483
151k12203483
$begingroup$
Thanks @ Michael E2, Is it possible to do this with an equation by the contourplot. Like ev4 = Eigenvalues[H[p, q, r, s]][[4]] /. Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0]; ContourPlot[ev4==-0.5, x, -[Pi], [Pi], z, 0, 2 [Pi]]. In my case this is not working.
$endgroup$
– Hazoor Imran
5 mins ago
add a comment |
$begingroup$
Thanks @ Michael E2, Is it possible to do this with an equation by the contourplot. Like ev4 = Eigenvalues[H[p, q, r, s]][[4]] /. Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0]; ContourPlot[ev4==-0.5, x, -[Pi], [Pi], z, 0, 2 [Pi]]. In my case this is not working.
$endgroup$
– Hazoor Imran
5 mins ago
$begingroup$
Thanks @ Michael E2, Is it possible to do this with an equation by the contourplot. Like ev4 = Eigenvalues[H[p, q, r, s]][[4]] /. Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0]; ContourPlot[ev4==-0.5, x, -[Pi], [Pi], z, 0, 2 [Pi]]. In my case this is not working.
$endgroup$
– Hazoor Imran
5 mins ago
$begingroup$
Thanks @ Michael E2, Is it possible to do this with an equation by the contourplot. Like ev4 = Eigenvalues[H[p, q, r, s]][[4]] /. Thread[p, q, r, s -> 0.1, 0.5, 0.7, 0]; ContourPlot[ev4==-0.5, x, -[Pi], [Pi], z, 0, 2 [Pi]]. In my case this is not working.
$endgroup$
– Hazoor Imran
5 mins ago
add a comment |
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f195721%2fnoise-in-eigenvalues-plot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown