Skip to content
Snippets Groups Projects
Commit b3cb3c0f authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

minor bugfix

parent c69bbc39
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -14,6 +14,7 @@ from common import draw_classic_axes
E_V, E_C, E_F = -1.2, 1.8, .4
E_D, E_A = E_C - .7, E_V + .5
m_h, m_e = 1, .5
sqrt_plus = lambda x: np.sqrt(x * (x >= 0))
def plot_dos():
......@@ -23,7 +24,6 @@ def plot_dos():
n_F = 1/(np.exp(2*(E - E_F)) + 1)
g_e = m_e * sqrt_plus(E - E_C)
g_h = m_h * sqrt_plus(E_V - E)
sqrt_plus = lambda x: np.sqrt(x * (x >= 0))
ax.plot(E, g_h, label="$g_e$")
ax.plot(E, g_e, label="$g_h$")
ax.plot(E, 10 * g_h * (1-n_F), label="$n_h$")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment