From b7a081754e6b4eef2f5e93189c9810c41f6e7c07 Mon Sep 17 00:00:00 2001 From: 7863035e551ae67aa7db6605c3e12966 <7863035e551ae67aa7db6605c3e12966@app-learninglab.inria.fr> Date: Sat, 5 Feb 2022 08:53:58 +0000 Subject: [PATCH] Update toy_document_fr.Rmd --- module2/exo1/toy_document_fr.Rmd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index 12779d0..af6ad82 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)) ``` -- 2.18.1