dernier essai

parent ea47cc42
...@@ -15,8 +15,13 @@ ...@@ -15,8 +15,13 @@
"hidePrompt": false "hidePrompt": false
}, },
"source": [ "source": [
"# À propos du calcul de $\\pi$\n", "# À propos du calcul de $\\pi$"
"\n", ]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## En demandant à la lib maths\n", "## En demandant à la lib maths\n",
"Mon ordinateur m'indique que $\\pi$ vaut *approximativement*" "Mon ordinateur m'indique que $\\pi$ vaut *approximativement*"
] ]
...@@ -50,7 +55,7 @@ ...@@ -50,7 +55,7 @@
}, },
"source": [ "source": [
"## En utilisation la méthode des aiguilles de Buffon\n", "## En utilisation la méthode 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__ :\n"
] ]
}, },
{ {
...@@ -117,8 +122,8 @@ ...@@ -117,8 +122,8 @@
"%matplotlib inline\n", "%matplotlib inline\n",
"\n", "\n",
"import matplotlib.pyplot as plt\n", "import matplotlib.pyplot as plt\n",
"np.random.seed(seed=42)\n",
"\n", "\n",
"np.random.seed(seed=42)\n",
"N = 1000\n", "N = 1000\n",
"x = np.random.uniform(size=N, low=0, high=1)\n", "x = np.random.uniform(size=N, low=0, high=1)\n",
"y = np.random.uniform(size=N, low=0, high=1)\n", "y = np.random.uniform(size=N, low=0, high=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