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

Update src/7_tight_binding_model_sol.md

parent 5e838362
Branches
No related tags found
1 merge request!58Solutions lecture 7
Pipeline #27904 failed
......@@ -34,11 +34,11 @@ Group velocity is given as $v=\hbar^{-1}\frac{\partial E}{\partial k}$ with $E=\
3.
```python
pyplot.figure()
pyplot.subplot(1,2,1)
k = np.linspace(-pi/2, pi/2, 300)
pyplot.plot(k, np.cos(k))
pyplot.xlabel('$k$'); pyplot.ylabel('$v(k)$')
ax = pyplot.figure()
ax.plot(k, np.cos(k))
ax.xlabel('$k$'); pyplot.ylabel('$v(k)$')
pyplot.xticks([-pi/2, 0, pi/2], [r'$-\pi/2$', 0, r'$\pi/2$'])
pyplot.yticks([0, 1], [0, r'$2\sqrt{\frac{\kappa}{m}}$'])
pyplot.hlines([1], -pi/2, 0, linestyles='dashed')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment