diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index 12779d02d9c0810e116aa903e9b90a9a624f97f4..af6ad823fce16b3450ef9a6d45732d4f96b1838c 100644 --- a/module2/exo1/toy_document_fr.Rmd +++ b/module2/exo1/toy_document_fr.Rmd @@ -20,10 +20,10 @@ 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) +set.seed(42) +N = 100000 +x = runif(N) +theta = pi/2*runif(N) 2/(mean(x+sin(theta)>1)) ```