R, K, n/2 Pi , {n, 1
Transkrypt
R, K, n/2 Pi , {n, 1
(* stdunia potencjału z deltą Diraca w środku *) R = 10; sol = TableFindRootK /Tan[K] ⩵ -R, K, n /2 Pi, {n, 1, 10, 2} // Union; psi1[x_, K_] = 5 Whichx < 0, Sin[K (x +1)], x > 0, -Sin[K (x -1)]; psi2[x_, K_] = 5 Whichx < 0, Sin[K (x +1)], x > 0, Sin[K (x -1)]; rys1 = PlotTableK ^ 2, psi2[x, K]+K ^ 2, K, Pi, 5 Pi, Pi, {x, -1, 1}, Axes → None, PlotStyle → RGBColor[0, 0, 1]; rys2 = PlotTableK ^ 2 /. sol[[n]], psi1[x, K]+K ^ 2 /. sol[[n]], n, 1, Lengthsol, {x, -1, 1}, Axes → None, PlotStyle → RGBColor[1, 0, 0]; xmax = 280; rys3 = GraphicsLine[{{-1, 0}, {-1, xmax }}], Line[{{1, 0}, {1, xmax }}], Line[{{-1, 0}, {1, 0}}], Dashing[0.02 {1, 1}], Line[{{0, 0}, {0, xmax }}]; Showrys1, rys2, rys3, AspectRatio→ 2