From 54bd49f0662acf3220fe8806cebcbf815836f689 Mon Sep 17 00:00:00 2001 From: 29b56e5e7dc0e38f035da79740a0812b <29b56e5e7dc0e38f035da79740a0812b@app-learninglab.inria.fr> Date: Tue, 15 Sep 2020 13:10:43 +0000 Subject: [PATCH] ESSAI calcul code --- module2/exo1/toy_document_fr.Rmd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index a316430..1d612e3 100644 --- a/module2/exo1/toy_document_fr.Rmd +++ b/module2/exo1/toy_document_fr.Rmd @@ -9,18 +9,18 @@ output: html_document Mon ordinateur m’indique que π vaut approximativement -``pi`` +``#pi`` #En utilisant la méthode des aiguilles de Buffon Mais calculé avec la __méthode__ des [aiguilles de Buffon](https://fr.wikipedia.org/wiki/Aiguille_de_Buffon), on obtiendrait comme __approximation__ : ``` -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