diff --git a/module2/exo1/toy_notebook_fr.Rmd b/module2/exo1/toy_notebook_fr.Rmd index 5e662b2d22e91d3784b2a414ea759c77eb369f63..90b575dcc47c85b33a08170608a8a0155964cfb1 100644 --- a/module2/exo1/toy_notebook_fr.Rmd +++ b/module2/exo1/toy_notebook_fr.Rmd @@ -44,7 +44,7 @@ library(ggplot2) ggplot(df, aes(x=X,y=Y,color=Accept)) + geom_point(alpha=.2) + coord_fixed() + theme_bw() ``` - 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: +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 approximation de pi} 4*mean(df$Accept)