Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
e6cfd8a10624671909b6755e01761c6e
mooc-rr
Commits
7c5cbbc5
Commit
7c5cbbc5
authored
May 07, 2025
by
e6cfd8a10624671909b6755e01761c6e
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final update
parent
e0f6053f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
toy_notebook_fr.ipynb
module2/exo1/toy_notebook_fr.ipynb
+4
-3
No files found.
module2/exo1/toy_notebook_fr.ipynb
View file @
7c5cbbc5
...
...
@@ -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": 1
2
,
"execution_count": 1
4
,
"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 :"
]
},
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment