From dc44b7102abb8bf1e465cd795139f01a14c498b3 Mon Sep 17 00:00:00 2001
From: 33042e67f507db32c116b01cde061461
<33042e67f507db32c116b01cde061461@app-learninglab.inria.fr>
Date: Sat, 18 Oct 2025 15:27:10 +0000
Subject: [PATCH] Update 2 toy_document_orgmode_R_fr.org
---
module2/exo1/toy_document_orgmode_R_fr.org | 2 ++
1 file changed, 2 insertions(+)
diff --git a/module2/exo1/toy_document_orgmode_R_fr.org b/module2/exo1/toy_document_orgmode_R_fr.org
index 54b44b0..2e5c4cb 100644
--- a/module2/exo1/toy_document_orgmode_R_fr.org
+++ b/module2/exo1/toy_document_orgmode_R_fr.org
@@ -10,6 +10,7 @@
#+HTML_HEAD:
#+HTML_HEAD:
#+HTML_HEAD:
+#+HTML_HEAD:
* En demandant à la lib maths
@@ -37,6 +38,7 @@ theta = pi/2*runif(N)
#+RESULTS:
: [1] 3.14327
+
* 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 \sim \mathcal{U}(0,1)\) et \(Y \sim \mathcal{U}(0,1)\) alors \(P[X^2+Y^2 \leq 1] = \pi/4\) (voir méthode de Monte Carlo sur Wikipedia). Le code suivant illustre ce fait :
--
2.18.1