From 36bab62b305cc3e40423576312ddc394b40e5d12 Mon Sep 17 00:00:00 2001 From: 29b56e5e7dc0e38f035da79740a0812b <29b56e5e7dc0e38f035da79740a0812b@app-learninglab.inria.fr> Date: Tue, 15 Sep 2020 13:24:30 +0000 Subject: [PATCH] Suppression # --- module2/exo1/toy_document_fr.Rmd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index dfdca5e..ef2f9a1 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 -- 2.18.1