From 92c89c31fd729a4e849215e963c71d4fbc6303ff Mon Sep 17 00:00:00 2001
From: 42eaffb07ab321885c173115fa1a5bf9
<42eaffb07ab321885c173115fa1a5bf9@app-learninglab.inria.fr>
Date: Wed, 19 Oct 2022 19:42:56 +0000
Subject: [PATCH] =?UTF-8?q?Deuxi=C3=A8me=20modification=20du=20fichier=20t?=
=?UTF-8?q?oy=5Fdocument=5Forgmode=5FR=5Ffr.org?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
module2/exo1/toy_document_orgmode_R_fr.org | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/module2/exo1/toy_document_orgmode_R_fr.org b/module2/exo1/toy_document_orgmode_R_fr.org
index d4c7091..ee35d74 100644
--- a/module2/exo1/toy_document_orgmode_R_fr.org
+++ b/module2/exo1/toy_document_orgmode_R_fr.org
@@ -1,6 +1,6 @@
-#+TITLE: À propos du calcul de \pi
+#+TITLE: À propos du calcul de \pi
#+AUTHOR: Lionel Sicot
-#+DATE: 19/10/2022
+#+DATE: 19/10/2022
#+LANGUAGE: fr
# #+PROPERTY: header-args :eval never-export
@@ -11,14 +11,14 @@
#+HTML_HEAD:
#+HTML_HEAD:
-* En demandant à la lib maths
+* 1. En demandant à la lib maths
Mon ordinateur m'indique que π vaut approximativement
#+begin_src R :results output :exports both
pi
#+end_src
-* En utilisant la méthode des [[https://fr.wikipedia.org/wiki/Aiguille_de_Buffon][aiguilles de Buffon]]
+* 2. En utilisant la méthode des [[https://fr.wikipedia.org/wiki/Aiguille_de_Buffon][aiguilles de Buffon]]
Mais calculé avec la *méthode* des aiguilles de Buffon, on obtiendrait comme *approximation* :
#+begin_src R :results output :exports both
@@ -29,7 +29,7 @@ theta = pi/2*runif(N)
2/(mean(x+sin(theta)>1))
#+end_src
-* Avec un argument "fréquentiel" de surface
+* 3. Avec un argument "fréquentiel" de surface
Sinon, une méthode plus simple à comprendre et ne faisant pas intervenir d'appel à la fonction sinus se base sur le fait que si X∼U(0,1) et Y∼U(0,1) alors P[X2+Y2≤1]=π/4 (voir [[https://fr.wikipedia.org/wiki/M%C3%A9thode_de_Monte-Carlo#D%C3%A9termination_de_la_valeur_de_%CF%80][éthode de Monte Carlo sur Wikipedia)]]. Le code suivant illustre ce fait :
#+begin_src R :results output graphics :file "./MonteCarlo.png" :exports results :width 600 :height 400 :session *R*
--
2.18.1