From 7c5cbbc5b76bf774e7673f5a01e9a3116932d990 Mon Sep 17 00:00:00 2001 From: e6cfd8a10624671909b6755e01761c6e Date: Wed, 7 May 2025 18:26:17 +0000 Subject: [PATCH] final update --- module2/exo1/toy_notebook_fr.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module2/exo1/toy_notebook_fr.ipynb b/module2/exo1/toy_notebook_fr.ipynb index 9ebf1c1..b99bf18 100644 --- a/module2/exo1/toy_notebook_fr.ipynb +++ b/module2/exo1/toy_notebook_fr.ipynb @@ -12,7 +12,7 @@ "metadata": {}, "source": [ "## En demandant à la lib maths\n", - "Mon ordinateur m'indique que $\\pi$ vaut approximativement " + "Mon ordinateur m'indique que $\\pi$ vaut *approximativement* " ] }, { @@ -76,7 +76,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -100,6 +100,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", + "\n", "accept = (x*x+y*y) <= 1\n", "reject = np.logical_not(accept)\n", "\n", @@ -113,7 +114,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Il est alors aisé d'obtenir une approximation (pas terrible) de $\\pi$ en comptant de fois, en moyenne, $X^2+Y^2$ est inférieur à 1 :" + "Il est alors aisé d'obtenir une approximation (pas terrible) de $\\pi$ en comptant de fois, en moyenne, $X^2 + Y^2$ est inférieur à 1 :" ] }, { -- 2.18.1