Skip to content
Snippets Groups Projects
Commit 45d907c8 authored by Lars kleyn Winkel's avatar Lars kleyn Winkel
Browse files

Update src/7_tight_binding_model_sol.md

parent f7e36be3
No related branches found
No related tags found
1 merge request!58Solutions lecture 7
Pipeline #28001 canceled
......@@ -110,32 +110,24 @@ k1 = np.linspace(-pi, -pi/2-0.01, 300);
k2 = np.linspace(-pi/2+0.01, pi/2-0.01, 300);
k3 = np.linspace(pi/2+0.01, pi, 300);
pyplot.subplot(1,3,1)
pyplot.plot(k1, 1/(5*np.cos(k1)),'b');
pyplot.plot(k1, 1/(5*np.cos(k1)),'b',label='t=2t\'');
pyplot.plot(k2, 1/(5*np.cos(k2)),'b');
pyplot.plot(k3, 1/(5*np.cos(k3)),'b');
pyplot.xlabel('$k$'); pyplot.ylabel('$m_{eff}(k)$');
pyplot.xticks([-pi,0,pi],[r'$-\pi/a$',0,r'$\pi/a$']);
pyplot.yticks([],[]);
pyplot.yticks([-20,20],[]);
pyplot.tight_layout();
pyplot.subplot(1,3,2)
pyplot.plot(k1, 1/(9*np.cos(k1)),'b');
pyplot.plot(k2, 1/(9*np.cos(k2)),'b');
pyplot.plot(k3, 1/(9*np.cos(k3)),'b');
pyplot.xlabel('$k$'); pyplot.ylabel('$m_{eff}(k)$');
pyplot.xticks([-pi,0,pi],[r'$-\pi/a$',0,r'$\pi/a$']);
pyplot.yticks([],[]);
pyplot.tight_layout();
pyplot.plot(k1, 1/(17*np.cos(k1)),'r');
pyplot.plot(k2, 1/(17*np.cos(k2)),'r');
pyplot.plot(k3, 1/(17*np.cos(k3)),'r',label='t=4t\'');
pyplot.subplot(1,3,3)
pyplot.plot(k1, 1/(21*np.cos(k1)),'b');
pyplot.plot(k2, 1/(21*np.cos(k2)),'b');
pyplot.plot(k3, 1/(21*np.cos(k3)),'b');
pyplot.xlabel('$k$'); pyplot.ylabel('$m_{eff}(k)$');
pyplot.xticks([-pi,0,pi],[r'$-\pi/a$',0,r'$\pi/a$']);
pyplot.yticks([],[]);
pyplot.tight_layout();
pyplot.plot(k1, 1/(41*np.cos(k1)),'k');
pyplot.plot(k2, 1/(41*np.cos(k2)),'k');
pyplot.plot(k3, 1/(41*np.cos(k3)),'k',label='t=10t\'');
pyplot.legend();
pyplot.show()
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment