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

Update src/7_tight_binding_model_sol.md

parent 1bdcf505
Branches
No related tags found
1 merge request!58Solutions lecture 7
Pipeline #27936 passed
......@@ -37,7 +37,7 @@ Group velocity is given as $v=\hbar^{-1}\frac{\partial E}{\partial k}$ with $E=\
pyplot.subplot(1,2,1)
k = np.linspace(-pi+0.01, pi-0.01, 300)
pyplot.plot(k[0:149], np.sin(k[0:149])/(np.sqrt(1-np.cos(k[0:149]))),'b');
pyplot.plot(k[149:300], np.sin(k[149:300])/(np.sqrt(1-np.cos(k[149:300]))),'b');
pyplot.plot(k[150:300], np.sin(k[150:300])/(np.sqrt(1-np.cos(k[150:300]))),'b');
pyplot.xlabel('$k$'); pyplot.ylabel('$v(k)$');
pyplot.xticks([-pi, 0, pi], [r'$-\pi/2$', 0, r'$\pi/2$']);
pyplot.yticks([-np.sqrt(2), 0, np.sqrt(2)], [r'$-2\sqrt{\frac{\kappa}{m}}$', 0, r'$2\sqrt{\frac{\kappa}{m}}$']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment