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
Émile Jetzer
mooc-rr
Commits
d2e319ac
Commit
d2e319ac
authored
May 14, 2020
by
Émile Jetzer
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrections après avoir vu le corrigé
parent
8ee13f65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
toy_document_orgmode_python_fr.org
module2/exo1/toy_document_orgmode_python_fr.org
+4
-4
No files found.
module2/exo1/toy_document_orgmode_python_fr.org
View file @
d2e319ac
...
@@ -25,8 +25,8 @@ math.pi
...
@@ -25,8 +25,8 @@ math.pi
* En utilisant la méthode des aiguilles de Buffon
* En utilisant la méthode des aiguilles de Buffon
Mais calculé avec la *méthode* des
[aiguilles de
Mais calculé avec la *méthode* des
[[(https://fr.wikipedia.org/wiki/Aiguille_de_Buffon]
[aiguilles de
Buffon]
(https://fr.wikipedia.org/wiki/Aiguille_de_Buffon)
, on
Buffon]
]
, on
obtiendrait comme *approximation*:
obtiendrait comme *approximation*:
#+begin_src python :results value :session "Python" :exports both
#+begin_src python :results value :session "Python" :exports both
...
@@ -46,8 +46,8 @@ theta = np.random.uniform(size=N, low=0, high=math.pi/2)
...
@@ -46,8 +46,8 @@ theta = np.random.uniform(size=N, low=0, high=math.pi/2)
Sinon, une méthode plus simple à comprendre et ne faisant pas
Sinon, une méthode plus simple à comprendre et ne faisant pas
intervenir d'appel à la fonction sinus se base sur le fait que si
intervenir d'appel à la fonction sinus se base sur le fait que si
\(X\tilde U(0, 1)\) et \(Y\tilde U(0, 1)\) alors \(P[X^2+Y^2 \leq 1]=\pi /4\)
\(X\tilde U(0, 1)\) et \(Y\tilde U(0, 1)\) alors \(P[X^2+Y^2 \leq 1]=\pi /4\)
(voir [méthode de Monte Carle sur
(voir [
[(https://fr.wikipedia.org/wiki/M%C3%A9thode_de_Monte-Carlo#D%C3%A9termination_de_la_valeur_de_%CF%80][
méthode de Monte Carle sur
Wikipedia]
(https://fr.wikipedia.org/wiki/M%C3%A9thode_de_Monte-Carlo#D%C3%A9termination_de_la_valeur_de_%CF%80)
. Le
Wikipedia]
]
. Le
code suivant illustre ce fait:
code suivant illustre ce fait:
#+begin_src python :results output file :var matplot_lib_filename="figure_pi_mc2.png" :session "Python" :exports both
#+begin_src python :results output file :var matplot_lib_filename="figure_pi_mc2.png" :session "Python" :exports both
...
...
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