From 24b950c708979f6905abfee03f557b191193b72d Mon Sep 17 00:00:00 2001 From: 23be481b3dae757d4aaf1e5004d7ac03 <23be481b3dae757d4aaf1e5004d7ac03@app-learninglab.inria.fr> Date: Mon, 20 Apr 2020 18:37:33 +0000 Subject: [PATCH] Update Lynda-markdown.md --- module2/module2/exo1/Lynda-markdown.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module2/module2/exo1/Lynda-markdown.md b/module2/module2/exo1/Lynda-markdown.md index ca11064..c6bdccc 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)` +``` -- 2.18.1