toy_notebook_fr_version4

parent 2c2c76d7
...@@ -38,12 +38,12 @@ ...@@ -38,12 +38,12 @@
"metadata": {}, "metadata": {},
"source": [ "source": [
"## En utilisant la méhode des aiguilles de Buffon\n", "## En utilisant la méhode des aiguilles de Buffon\n",
"Mais calculé avec la **méthode** des [aiguilles de Buffon](https://fr.wikipedia.org/wiki/Aiguille_de_Buffon), on obtiendrait comme approximation :" "Mais calculé avec la __méthode__ des [aiguilles de Buffon](https://fr.wikipedia.org/wiki/Aiguille_de_Buffon), on obtiendrait comme __approximation__ :"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 9,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
"3.128911138923655" "3.128911138923655"
] ]
}, },
"execution_count": 2, "execution_count": 9,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -60,9 +60,9 @@ ...@@ -60,9 +60,9 @@
"source": [ "source": [
"import numpy as np\n", "import numpy as np\n",
"np.random.seed(seed=42)\n", "np.random.seed(seed=42)\n",
"N=10000\n", "N = 10000\n",
"x=np.random.uniform(size=N, low=0, high=1)\n", "x = np.random.uniform(size=N, low=0, high=1)\n",
"theta=np.random.uniform(size=N, low=0, high=pi/2)\n", "theta = np.random.uniform(size=N, low=0, high=pi/2)\n",
"2/(sum((x+np.sin(theta))>1)/N)" "2/(sum((x+np.sin(theta))>1)/N)"
] ]
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment