Commit 6e9c9781 authored by hakimouaras's avatar hakimouaras

Small corrections

parent 675572bc
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## À propos du calcul de π " "## À propos du calcul de $\\pi$ "
] ]
}, },
{ {
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"Mon ordinateur m’indique que π vaut approximativement" "Mon ordinateur m’indique que $\\pi$ vaut approximativement"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 6, "execution_count": 5,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 7, "execution_count": 6,
"metadata": { "metadata": {
"scrolled": true "scrolled": true
}, },
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
"3.128911138923655" "3.128911138923655"
] ]
}, },
"execution_count": 7, "execution_count": 6,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -106,14 +106,14 @@ ...@@ -106,14 +106,14 @@
"metadata": {}, "metadata": {},
"source": [ "source": [
"Sinon, une méthode plus simple à comprendre et ne faisant pas intervenir d’appel à la fonction \n", "Sinon, une méthode plus simple à comprendre et ne faisant pas intervenir d’appel à la fonction \n",
"sinus se base sur le fait que si X ∼ U(0,1) et Y ∼ U(0,1) alors P[X2 + Y2 ≤ 1] = π/4 (voir \n", "sinus se base sur le fait que si X ∼ U(0,1) et Y ∼ U(0,1) alors P[$X^2$ + $Y^2$ ≤ 1] = $\\pi$/4 (voir \n",
"[méthode de Monte Carlo sur Wikipedia](https://fr.wikipedia.org/wiki/Méthode_de_Monte-Carlo#D%C3%A9termination_de_la_valeur_de_%CF%80)). \n", "[méthode de Monte Carlo sur Wikipedia](https://fr.wikipedia.org/wiki/Méthode_de_Monte-Carlo#D%C3%A9termination_de_la_valeur_de_%CF%80)). \n",
"Le code suivant illustre ce fait :" "Le code suivant illustre ce fait :"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 7,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 9, "execution_count": 8,
"metadata": { "metadata": {
"scrolled": true "scrolled": true
}, },
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
"3.112" "3.112"
] ]
}, },
"execution_count": 9, "execution_count": 8,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -182,6 +182,18 @@ ...@@ -182,6 +182,18 @@
"display_name": "Python 3", "display_name": "Python 3",
"language": "python", "language": "python",
"name": "python3" "name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
} }
}, },
"nbformat": 4, "nbformat": 4,
......
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