From 03dd9082bcf28408d8d48bde66743d5fb7ea3b3c Mon Sep 17 00:00:00 2001 From: d67f1d289df81656bf4e76b9db13fedf Date: Sun, 13 Nov 2022 22:39:30 +0000 Subject: [PATCH] Finalisation avec le dernier code --- module2/exo1/toy_notebook_fr.ipynb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/module2/exo1/toy_notebook_fr.ipynb b/module2/exo1/toy_notebook_fr.ipynb index b78db39..adacb7c 100644 --- a/module2/exo1/toy_notebook_fr.ipynb +++ b/module2/exo1/toy_notebook_fr.ipynb @@ -112,6 +112,26 @@ "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 :" ] }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "3.112" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "4*np.mean(accept)" + ] + }, { "cell_type": "code", "execution_count": null, -- 2.18.1