From a6c455c8210346d15de55d0c393638b6f0ca752b Mon Sep 17 00:00:00 2001 From: 6f1fc9e12f6e7e94b21490a9d2cd42dd <6f1fc9e12f6e7e94b21490a9d2cd42dd@app-learninglab.inria.fr> Date: Mon, 28 Oct 2024 08:54:33 +0000 Subject: [PATCH] Update toy_document_fr.Rmd --- module2/exo1/toy_document_fr.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index f69d3ca..9e8b3d7 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 -- 2.18.1