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

Update src/8_many_atoms_sol.md

parent b9a6eb5f
Branches
No related tags found
1 merge request!58Solutions lecture 7
Pipeline #28235 failed
......@@ -57,11 +57,12 @@ The dispersion is given by: $$ E = \epsilon \pm \sqrt{t_1^2 + t_2^2 + 2t_1t_2\co
```python
pyplot.figure()
k = np.linspace(-2*pi, 2*pi, 300)
pyplot.plot(k, np.sqrt(5+2*2*np.cos(k)),'b')
pyplot.plot(k, -np.sqrt(5+2*2*np.cos(k)),'b')
pyplot.plot(k, -3*np.cos(k/2),'r')
pyplot.plot(k, np.sqrt(5+2*2*np.cos(k)),'b',label='2atom')
pyplot.plot(k, -np.sqrt(5+2*2*np.cos(k)),'b',label='2atom')
pyplot.plot(k, -3*np.cos(k/2),'r',label='1atom')
pyplot.xlabel('$ka$'); pyplot.ylabel(r'$E-\epsilon$')
pyplot.xticks([-pi, 0, pi], [r'$ka$', 0, r'$ka$'])
pyplot.yticks([-3, 0, 3], [r'$-t_1-t_2$', '$E_0$', r'$t_1+t_2$']);
pyplot.legend([2atom,1atom],['2 atom unit cell dispersion','single atom unit cell dispersion'])
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment