diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index f69d3ca798fa6280878af5dd47e622644cda3830..9e8b3d72f61656fb4111dc274d103c57ae5f65eb 100644 --- a/module2/exo1/toy_document_fr.Rmd +++ b/module2/exo1/toy_document_fr.Rmd @@ -17,11 +17,11 @@ pi Mais calculé avec la méthode des aiguilles de Buffon, on obtiendrait comme approximation : -set.seed(42) +'set.seed(42) N = 100000 x = runif(N) theta = pi/2*runif(N) -2/(mean(x+sin(theta)>1)) +2/(mean(x+sin(theta)>1))' ## [1] 3.14327