diff --git a/module2/exo1/toy_notebook_en.ipynb b/module2/exo1/toy_notebook_en.ipynb index c308d13dc998333093571c5bf4e5488b58ec4755..8e2871ae2542b9356d95d7af34e3d352702691de 100644 --- a/module2/exo1/toy_notebook_en.ipynb +++ b/module2/exo1/toy_notebook_en.ipynb @@ -8,9 +8,26 @@ "source": [ "# On the computation of $\\pi$\n", "\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ "## Asking the maths library\n", "My computer tells me that $\\pi$ is *approximatively*\n", - "\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ "from math import *\n", "print(pi)\n", "\n", @@ -22,7 +39,7 @@ "N = 10000\n", "x = np.random.uniform(size=N, low=0, high=1)\n", "theta = np.random.uniform(size=N, low=0, high=pi/2)\n", - "2/(sum((x+np.sin(theta))>1)/N)\n" + "2/(sum((x+np.sin(theta))>1)/N)" ] }, {