From 5e8a87e47b1555e91f3d2c0073731307825d1099 Mon Sep 17 00:00:00 2001 From: bab8283069a600d78f3b5efe7e5079ad Date: Wed, 8 Apr 2020 21:56:37 +0000 Subject: [PATCH] Update toy_document_fr.Rmd --- module2/exo1/toy_document_fr.Rmd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index 8c444d0..4272a80 100644 --- a/module2/exo1/toy_document_fr.Rmd +++ b/module2/exo1/toy_document_fr.Rmd @@ -41,9 +41,7 @@ df$Accept = (df$X**2 + df$Y**2 <=1) library(ggplot2) ggplot(df, aes(x=X,y=Y,color=Accept)) + geom_point(alpha=.2) + coord_fixed() + theme_bw() ``` -l est alors aisé d’obtenir une approximation (pas terrible) de π en comptant combien de fois, en moyenne, X2+Y2 - -est inférieur à 1: +l 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