final update

parent e0f6053f
......@@ -12,7 +12,7 @@
"metadata": {},
"source": [
"## En demandant à la lib maths\n",
"Mon ordinateur m'indique que $\\pi$ vaut approximativement "
"Mon ordinateur m'indique que $\\pi$ vaut *approximativement* "
]
},
{
......@@ -76,7 +76,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 14,
"metadata": {},
"outputs": [
{
......@@ -100,6 +100,7 @@
"N = 1000\n",
"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",
"reject = np.logical_not(accept)\n",
"\n",
......@@ -113,7 +114,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Il est alors aisé d'obtenir une approximation (pas terrible) de $\\pi$ en comptant 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 de fois, en moyenne, $X^2 + Y^2$ est inférieur à 1 :"
]
},
{
......
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