Affichage des deux graphes

parent 324b1505
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": { "metadata": {
"hideCode": true, "hideCode": false,
"hidePrompt": false "hidePrompt": false
}, },
"source": [ "source": [
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": 7,
"metadata": { "metadata": {
"hideCode": false, "hideCode": false,
"hidePrompt": false "hidePrompt": false
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
"3.128911138923655" "3.128911138923655"
] ]
}, },
"execution_count": 3, "execution_count": 7,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -69,9 +69,9 @@ ...@@ -69,9 +69,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)"
] ]
}, },
......
This diff is collapsed.
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