Compléter les dernières modifications

parent 81ae6f81
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": 14,
"metadata": { "metadata": {
"hideCode": false, "hideCode": false,
"hidePrompt": false "hidePrompt": false
...@@ -64,10 +64,10 @@ ...@@ -64,10 +64,10 @@
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"3.1289111389236548" "3.128911138923655"
] ]
}, },
"execution_count": 10, "execution_count": 14,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -99,6 +99,7 @@ ...@@ -99,6 +99,7 @@
"hideCode": false, "hideCode": false,
"hidePrompt": false "hidePrompt": false
}, },
"outputs": [],
"source": [ "source": [
"%matplotlib inline \n", "%matplotlib inline \n",
"import matplotlib.pyplot as plt\n", "import matplotlib.pyplot as plt\n",
...@@ -121,21 +122,21 @@ ...@@ -121,21 +122,21 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "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 p en comptant combien de fois, en moyenne, $X^2 +Y^2$ est inférieur à 1 :"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 15,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"3.1120000000000001" "3.112"
] ]
}, },
"execution_count": 8, "execution_count": 15,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -143,6 +144,13 @@ ...@@ -143,6 +144,13 @@
"source": [ "source": [
"4*np.mean(accept)" "4*np.mean(accept)"
] ]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
} }
], ],
"metadata": { "metadata": {
......
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