From 1dfddf5ec7dfb58829b0cd54e0eda737aca66887 Mon Sep 17 00:00:00 2001 From: 0498ca70c07d4268d7a4a84573aa6477 <0498ca70c07d4268d7a4a84573aa6477@app-learninglab.inria.fr> Date: Wed, 26 May 2021 16:13:43 +0000 Subject: [PATCH] modif1 --- module2/exo1/toy_notebook_fr.ipynb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/module2/exo1/toy_notebook_fr.ipynb b/module2/exo1/toy_notebook_fr.ipynb index a41e5ed..bfc7a53 100644 --- a/module2/exo1/toy_notebook_fr.ipynb +++ b/module2/exo1/toy_notebook_fr.ipynb @@ -6,7 +6,7 @@ "source": [ "# A propos du calcul de $\\pi$\n", "\n", - "## En demandant la lib maths\n", + "## En demandant à la lib maths\n", "\n", "Mon ordinateur m'indique que $\\pi$ vaut *approximativement*" ] @@ -40,7 +40,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -49,7 +49,7 @@ "3.128911138923655" ] }, - "execution_count": 4, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -57,9 +57,9 @@ "source": [ "import numpy as np\n", "np.random.seed(seed=42)\n", - "N=10000\n", - "x=np.random.uniform(size=N, low=0, high=1)\n", - "theta=np.random.uniform(size=N, low=0, high=pi/2)\n", + "N = 10000\n", + "x = np.random.uniform(size=N, low=0, high=1)\n", + "theta = np.random.uniform(size=N, low=0, high=pi/2)\n", "2/(sum((x+np.sin(theta))>1)/N)" ] }, -- 2.18.1