@@ -7,15 +7,30 @@ include("Eigenvalue_standard.jl")
77
88import Plots
99using LinearAlgebra: norm
10- p = Plots. plot (V; legend= false , ylim= (- Inf , λ[22 ]))
10+ p = Plots. plot (V, legend= false , ylim= (- Inf , λ[22 ]))
1111for k= 1 : 20
12- Plots. plot! (real (v[k]/ norm (v[k]) + λ[k]), )
12+ Plots. plot! (real (v[k]/ norm (v[k]) + λ[k]))
1313end
1414p
1515
1616# If the solutions are not relatively constant near the boundary then one should push
1717# the boundaries further out.
1818
19+ include (" Eigenvalue_tunnelling.jl" )
20+
21+ # We plot the first few eigenfunctions
22+ p = Plots. plot (V, legend= false )
23+ Plots. vline! ([- Lx/ 2 , Lx/ 2 ], linecolor= :black )
24+ p_twin = Plots. twinx (p)
25+ for k= 1 : 6
26+ Plots. plot! (p_twin, real (v[k]/ norm (v[k]) + λ[k]), label= " $k " )
27+ end
28+ p
29+
30+ # Note that the parity symmetry isn't preserved exactly at finite matrix sizes.
31+ # In general, it's better to preserve the symmetry of the operator matrices (see section below),
32+ # and projecting them on to the appropriate subspaces.
33+
1934# For problems with different contraints or boundary conditions,
2035# `B` can be any zero functional constraint, e.g., `DefiniteIntegral()`.
2136
0 commit comments