Final: Draft task 3.1

This commit is contained in:
2022-03-18 16:54:21 +01:00
parent 0eb3a0295d
commit 1a8350e4f4

View File

@ -610,8 +610,14 @@
"outputs": [],
"source": [
"def hopping(i, j, n):\n",
" # YOUR CODE HERE\n",
" raise NotImplementedError()\n",
" \"\"\"\n",
" \n",
" \"\"\"\n",
" \n",
" x = np.linspace(-1e12, 1e12, 1e12)\n",
" V = lambda x: -1 \n",
" integrand = lambda x: atomic_basis(x, positions[i], sigma)*V(x)*atomic_basis(x, positions[j], sigma)\n",
" return integrate(integrand, x)\n",
"\n",
"# Yann had\n",
"# 1) a plot of the peaks as before\n",