From c6e5f7252a1955dfe4d978de622d80c4d828cac3 Mon Sep 17 00:00:00 2001 From: Jhouben Date: Thu, 20 May 2021 13:22:18 +0000 Subject: [PATCH] Update toy_document_en.Rmd --- module2/exo1/toy_document_en.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module2/exo1/toy_document_en.Rmd b/module2/exo1/toy_document_en.Rmd index d544114..6961b74 100644 --- a/module2/exo1/toy_document_en.Rmd +++ b/module2/exo1/toy_document_en.Rmd @@ -38,7 +38,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() -``` +``` It is then straightforward to obtain a (not really good) approximation to $\pi$ by counting how many times, on average, $X^2 + Y^2$ is smaller than 1: -- 2.18.1