H = [ 0.055223824831070606 + 0.0im 0.04250173113321286 - 0.016736033802048134im 0.06808181471140722 - 0.016523882638501623im 0.02456433686330929 + 0.024129435526968775im 0.04250173113321286 + 0.016736033802048134im 0.25352888248594296 + 0.0im -0.06291752148942475 - 0.05421215161192447im 0.0005281399007515258 - 0.13445501592101483im 0.06808181471140722 + 0.016523882638501623im -0.06291752148942475 + 0.05421215161192447im 0.20062260019129932 + 0.0im 0.06473022914462262 + 0.046703753122366035im 0.02456433686330929 - 0.024129435526968775im 0.0005281399007515258 + 0.13445501592101483im 0.06473022914462262 - 0.046703753122366035im 0.3656246924916874 + 0.0im ] ψ_1 = [ -0.2851229068851756 - 0.7959375434640747im -0.07419962766927407 + 0.3310127181139049im 0.05393324120384768 + 0.3861008890113258im 0.13465013766134298 - 0.0im ] ψ_2 = [ -0.44555599219401054 + 0.24118519577132186im -0.48943424320369155 - 0.20791669090116954im -0.5902812093726024 + 0.3348170011315366im 0.0 + 0.0im ] ψ_3 = [ 0.0729128723738445 + 0.01693929093522771im -0.005647875904421035 - 0.5294388803558296im 0.27749541745054207 + 0.23701946862517476im 0.7621531419057002 + 0.0im ] ϕ = [ -0.08050649579816155 - 0.2270190111517908im -0.02125169364183489 + 0.08802829138965473im 0.018788085834487045 + 0.11312141077738833im 0.959495186229063 + 0.0im ] # # For Julia # import Markdown @doc raw" # This file This file defines the matrix `H` and the vectors `ψ_1`, `ψ_2`, `ψ_3`, `ϕ` as in the LaTeX document. Use it by including it from Julia, e.g., ```julia include(\"ex10.jl\") ``` # Using Julia 1. How to get math symbols: type the LaTeX command (e.g., `\phi`), then hit `tab`. 2. Useful linear algebra functions (need: `using LinearAlgebra`): + `eigvals(A)` + `eigvecs(A)` + `dot(x,y)` 3. Get help from Julia: Type `?` then the command, then enter, e.g., ```julia ?help! ``` " help!() = Docs.doc(help!) using LinearAlgebra # somebody will forget it get stuck... ; #EOF