Skip to content
Snippets Groups Projects
Commit 4016f29e authored by Thomas Pijls's avatar Thomas Pijls
Browse files

Update 7_tight_binding_model_solutions.md

parent 5d1e7e6b
No related branches found
No related tags found
No related merge requests found
Pipeline #92908 passed
......@@ -80,8 +80,8 @@ 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[150:300], np.sin(k[150:300])/(np.sqrt(1-np.cos(k[150:300]))),'b');
pyplot.xlabel(r'$ka$'); 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}}$']);
pyplot.xticks([-pi, 0, pi], [r'$-\pi$', 0, r'$\pi$']);
pyplot.yticks([-np.sqrt(2), 0, np.sqrt(2)], [r'$-a\sqrt{\frac{\kappa}{m}}$', 0, r'$a\sqrt{\frac{\kappa}{m}}$']);
pyplot.tight_layout();
pyplot.subplot(1,2,2)
......@@ -90,7 +90,7 @@ g = 1/np.sqrt(1-w**2);
pyplot.plot(w, g, 'b');
pyplot.xlabel(r'$\omega$'); pyplot.ylabel('$g(w)$');
pyplot.xticks([0, 1], [0, r'$2\sqrt{\frac{k}{m}}$']);
pyplot.yticks([0.5, 1], [0, r'$\frac{L}{2\pi a}\sqrt{\frac{\kappa}{m}}$']);
pyplot.yticks([0.5, 1], [0, r'$\frac{L}{\pi a}\sqrt{\frac{m}{\kappa}}$']);
pyplot.tight_layout();
```
......
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