Skip to main content
17 events
when toggle format what by license comment
Sep 9, 2021 at 23:05 vote accept sslucifer
Sep 9, 2021 at 2:45 history edited sslucifer CC BY-SA 4.0
added 409 characters in body; added 2 characters in body
Sep 9, 2021 at 0:09 answer added Bob Hanlon timeline score: 2
Sep 8, 2021 at 23:32 comment added sslucifer @BobHanlon Can you redo the calculation in v12.3.1 for the matrix above with the floating numbers are in machine precision. If you don't get these crossing, I believe its the bug then.
Sep 8, 2021 at 23:28 comment added sslucifer @march it does, I have tried it. However, if I used SetPrecision to 10, then it doesn't happen. However, if I change arguments [0,0,z] to [x,0,0], the problem remains.
Sep 8, 2021 at 23:22 comment added march Does it still occur if don't FullSimplify or if you Rationalize either hamil or the eigenvalue functions?
Sep 8, 2021 at 23:21 comment added sslucifer @march you are right, in the previous post it was a feature, but in this case I think there is some problem of precision of floating numbers, but I am not sure.
Sep 8, 2021 at 22:34 comment added march @BobHanlon. I'm not sure that it's equivalent, because in the previous post, the eigenvalues cross, and switch where they cross, whereas here, they're switching at some arbitrary position.
Sep 8, 2021 at 22:06 comment added Bob Hanlon With v12.3.1 the crossovers don't occur. However, with versions that do, this is equivalent to the question that you asked here
Sep 8, 2021 at 22:05 history edited sslucifer CC BY-SA 4.0
added 406 characters in body
Sep 8, 2021 at 22:01 comment added march That's strange! To my understanding, Root objects automatically sort the eigenvalues (although all I could find in the documentation was "The ordering used by Root[f,k] takes real roots to come before complex ones"), so I'm surprised it's doing this.
Sep 8, 2021 at 21:58 comment added sslucifer I am running in Ver 12.1.1 on OSX 11.5.2
Sep 8, 2021 at 21:51 comment added march I still can't reproduce the error (directly copying and running your code)! What version are you using?
Sep 8, 2021 at 21:49 comment added sslucifer @march I missed _ in front of kz in hamil function. Please check that one. I made the edits.
Sep 8, 2021 at 21:48 history edited sslucifer CC BY-SA 4.0
added 1 character in body
Sep 8, 2021 at 21:48 comment added march I cannot reproduce this (Ver 12.0.0 on OSX 10.15.7).
Sep 8, 2021 at 21:38 history asked sslucifer CC BY-SA 4.0