From 446d70b1fd51c77d2af03dfdd9ec0dcd012464fc Mon Sep 17 00:00:00 2001 From: 5d30d07e0befc97e681e8d750e718009 <5d30d07e0befc97e681e8d750e718009@app-learninglab.inria.fr> Date: Mon, 10 Aug 2020 18:26:08 +0000 Subject: [PATCH] Update toy_document_fr.Rmd --- module2/exo1/toy_document_fr.Rmd | 1 + 1 file changed, 1 insertion(+) diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index ac52fbd..5386973 100644 --- a/module2/exo1/toy_document_fr.Rmd +++ b/module2/exo1/toy_document_fr.Rmd @@ -41,6 +41,7 @@ ggplot(df, aes(x=X,y=Y,color=Accept)) + geom_point(alpha=.2) + coord_fixed() + t ``` Il est alors aisé d'obtenir une approximation (pas terrible) de $\pi$ en comptant combien de fois, en moyenne, $X^2 + Y^2$ est inférieur à 1 : + ```{r} 4*mean(df$Accept) ``` -- 2.18.1