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

Update src/7_tight_binding_model_sol.md

parent 79eadfdd
No related branches found
No related tags found
1 merge request!58Solutions lecture 7
Pipeline #27934 passed
......@@ -36,7 +36,8 @@ Group velocity is given as $v=\hbar^{-1}\frac{\partial E}{\partial k}$ with $E=\
```python
pyplot.subplot(1,2,1)
k = np.linspace(-pi+0.01, pi-0.01, 300)
pyplot.plot(k, np.sin(k)/(np.sqrt(1-np.cos(k))));
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.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.
Finish editing this message first!
Please register or to comment