diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index 49543da963f65f75717ebaacf4e223458189f12d..1dbd927d79e90ecb157724dee06066189e7d9d7c 100644 --- a/module2/exo1/toy_document_fr.Rmd +++ b/module2/exo1/toy_document_fr.Rmd @@ -1,8 +1,5 @@ --- title: "À propos du calcul de pi" -author: "Arnaud Legrand" -date: "25 juin 2018" -output: html_document --- @@ -44,8 +41,3 @@ library(ggplot2) ggplot(df, aes(x=X,y=Y,color=Accept)) + geom_point(alpha=.2) + coord_fixed() + theme_bw() ``` -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) -```