diff --git a/module2/module2/exo1/Lynda-markdown.md b/module2/module2/exo1/Lynda-markdown.md index ca11064d6f9606332e7f26f43ddbcc9b8e89ab0c..c6bdccc9ba479f02d3bfc8d63e8147dc451b6974 100644 --- a/module2/module2/exo1/Lynda-markdown.md +++ b/module2/module2/exo1/Lynda-markdown.md @@ -38,7 +38,10 @@ 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() ``` -Il est alors aisé d’obtenir une approximation (pas terrible) de π en comptant combien de fois, en moyenne, X2+Y2 est inférieur à 1: + + +Il est alors aisé d’obtenir une approximation (pas terrible) de π en comptant combien de fois, en moyenne, $X^2+Y^2$ est inférieur à 1: `4*mean(df$Accept)` +```