From 44c54a247b002e6d558e663c48f10805598f005b Mon Sep 17 00:00:00 2001 From: Manuela Date: Fri, 21 Feb 2025 20:26:26 +0100 Subject: [PATCH] nouvelle version --- module2/exo1/toy_document_fr.Rmd | 8 ++------ mooc-rr.Rproj | 13 +++++++++++++ 2 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 mooc-rr.Rproj diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index 4597120..efb6341 100644 --- a/module2/exo1/toy_document_fr.Rmd +++ b/module2/exo1/toy_document_fr.Rmd @@ -22,17 +22,13 @@ pi Mais calculé avec la **méthode** des [ aiguilles de Buffon](https://fr.wikipedia.org/wiki/Aiguille_de_Buffon), on obtiendrait comme **approximation** : -~~~ +```{r} set.seed(42) N = 100000 x = runif(N) theta = pi/2*runif(N) 2/(mean(x+sin(theta)>1)) -~~~ - -~~~ -## [1] 3.14327 -~~~ +``` #Avec un argument “fréquentiel” de surface diff --git a/mooc-rr.Rproj b/mooc-rr.Rproj new file mode 100644 index 0000000..8e3c2eb --- /dev/null +++ b/mooc-rr.Rproj @@ -0,0 +1,13 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX -- 2.18.1