From 740f24bf4b969106112510bff56029a7d5d037a0 Mon Sep 17 00:00:00 2001 From: 7b6ab3e907fcca64ce4257f26cd31e57 <7b6ab3e907fcca64ce4257f26cd31e57@app-learninglab.inria.fr> Date: Wed, 5 Jan 2022 10:38:32 +0000 Subject: [PATCH] =?UTF-8?q?Compl=C3=A9ter=20les=20derni=C3=A8res=20modific?= =?UTF-8?q?ations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module2/exo1/toy_notebook_fr.ipynb | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/module2/exo1/toy_notebook_fr.ipynb b/module2/exo1/toy_notebook_fr.ipynb index 3ecd355..e4d479e 100644 --- a/module2/exo1/toy_notebook_fr.ipynb +++ b/module2/exo1/toy_notebook_fr.ipynb @@ -55,7 +55,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 14, "metadata": { "hideCode": false, "hidePrompt": false @@ -64,10 +64,10 @@ { "data": { "text/plain": [ - "3.1289111389236548" + "3.128911138923655" ] }, - "execution_count": 10, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -99,6 +99,7 @@ "hideCode": false, "hidePrompt": false }, + "outputs": [], "source": [ "%matplotlib inline \n", "import matplotlib.pyplot as plt\n", @@ -121,21 +122,21 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "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 :" + "Il est alors aisé d’obtenir une approximation (pas terrible) de p en comptant combien de fois, en moyenne, $X^2 +Y^2$ est inférieur à 1 :" ] }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "3.1120000000000001" + "3.112" ] }, - "execution_count": 8, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -143,6 +144,13 @@ "source": [ "4*np.mean(accept)" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { -- 2.18.1