From 5ff01708241ea6775b3c5398853c7f6fa5c8e85d Mon Sep 17 00:00:00 2001 From: 2582446175ee82f7405c2fa41d1f47f7 <2582446175ee82f7405c2fa41d1f47f7@app-learninglab.inria.fr> Date: Wed, 3 Sep 2025 07:55:44 +0000 Subject: [PATCH] last version --- module2/exo1/toy_notebook_fr.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module2/exo1/toy_notebook_fr.ipynb b/module2/exo1/toy_notebook_fr.ipynb index e0a64ab..aeab3dd 100644 --- a/module2/exo1/toy_notebook_fr.ipynb +++ b/module2/exo1/toy_notebook_fr.ipynb @@ -93,7 +93,7 @@ } ], "source": [ - "%matplotlib inline\n", + "%matplotlib inline \n", "import matplotlib.pyplot as plt\n", "\n", "np.random.seed(seed=42)\n", @@ -101,7 +101,7 @@ "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", + "accept = (x*x+y*y) <= 1\n", "reject = np.logical_not(accept)\n", "\n", "fig, ax = plt.subplots(1)\n", @@ -114,7 +114,7 @@ "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 $\\pi$ en comptant combien de fois, en moyenne, $X^2 + Y^2$ est inférieur à 1 :" ] }, { -- 2.18.1