From 14f49e856b7317ffabdb90d4a1b9f0a1ff3682ac Mon Sep 17 00:00:00 2001 From: Martin DAVY Date: Mon, 13 Dec 2021 17:08:05 +0100 Subject: [PATCH] update --- module2/exo1/toy_document_fr.Rmd | 2 +- module2/exo1/toy_document_fr.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index 977ae4f..538050f 100644 --- a/module2/exo1/toy_document_fr.Rmd +++ b/module2/exo1/toy_document_fr.Rmd @@ -42,7 +42,7 @@ 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, $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} 4*mean(df$Accept) ``` diff --git a/module2/exo1/toy_document_fr.html b/module2/exo1/toy_document_fr.html index aad9b77..a8ccf39 100644 --- a/module2/exo1/toy_document_fr.html +++ b/module2/exo1/toy_document_fr.html @@ -197,7 +197,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()

-

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:

+

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:

4*mean(df$Accept)
## [1] 3.156
-- 2.18.1