diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index dfdca5e60b6ef9948a0560ecef671a8ce185df91..ef2f9a14478c9a23e5ae51e6aa09fac25567732e 100644 --- a/module2/exo1/toy_document_fr.Rmd +++ b/module2/exo1/toy_document_fr.Rmd @@ -22,11 +22,11 @@ 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)) +set.seed(42) +N = 100000 +x = runif(N) +theta = pi/2*runif(N) +2/(mean(x+sin(theta)>1)) ``` ##Avec un argument "fréquentiel" de surface