From 0fb3a83a5075a30a1c82c51bbc9abe0d6d017f6a Mon Sep 17 00:00:00 2001 From: f93f0ca7746588bcbc9ef069a5899d3d Date: Thu, 2 Sep 2021 12:43:52 +0000 Subject: [PATCH] no commit message --- module2/exo1/toy_notebook_fr.ipynb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/module2/exo1/toy_notebook_fr.ipynb b/module2/exo1/toy_notebook_fr.ipynb index 756154a..fef8fc9 100644 --- a/module2/exo1/toy_notebook_fr.ipynb +++ b/module2/exo1/toy_notebook_fr.ipynb @@ -4,7 +4,13 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# À propos du calcul de $\\pi$\n", + "# À propos du calcul de $\\pi$" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ "## En demandant à la lib maths\n", "Mon ordinateur m'indique que $\\pi$ vaut _approximativement_" ] @@ -95,7 +101,7 @@ "N = 1000\n", "x = np.random.uniform(size=N, low=0, high=1)\n", "y = np.random.uniform(size=N, low=0, high=1)\n", - "1\n", + "\n", "accept = (x*x+y*y) <= 1\n", "reject = np.logical_not(accept)\n", "fig, ax = plt.subplots(1)\n", @@ -108,8 +114,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Il est alors aisé d’obtenir une approximation (pas terrible) de $\\pi$ en comptant combien de fois,\n", - "en moyenne,$X^2+Y^2 $est inférieur à 1 :" + "Il est alors aisé d’obtenir une approximation (pas terrible) de $\\pi$ en comptant combien de fois, en moyenne,$X^2+Y^2 $est inférieur à 1 :" ] }, { -- 2.18.1