From f43062f4999996e0d2c8b5dfcf56bdf02b73be2b Mon Sep 17 00:00:00 2001 From: 8a31633c40889a7a89c831544b7d92e5 <8a31633c40889a7a89c831544b7d92e5@app-learninglab.inria.fr> Date: Sun, 14 Aug 2022 13:00:31 +0000 Subject: [PATCH] Completed toy_document_fr.Rmd --- module2/exo1/toy_document_fr.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module2/exo1/toy_document_fr.Rmd b/module2/exo1/toy_document_fr.Rmd index d4ae724..f965d17 100644 --- a/module2/exo1/toy_document_fr.Rmd +++ b/module2/exo1/toy_document_fr.Rmd @@ -28,7 +28,7 @@ theta = pi/2*runif(N) ## Using Fraction arguement -A method that is easier to understand and does not make use of the sin function is based on the fact that if X∼U(0,1) and Y∼U(0,1), then P[X2+Y2≤1]=π/4 [Mont carlo method](https://en.wikipedia.org/wiki/Monte_Carlo_method). The following code uses this approach: +A method that is easier to understand and does not make use of the sin function is based on the fact that if $X\sim U(0,1)$ et $Y\sim U(0,1)$ then $P[X^2+Y^2\leq 1] = \pi/4$ [Mont carlo method](https://en.wikipedia.org/wiki/Monte_Carlo_method). The following code uses this approach: ```{r} set.seed(42) -- 2.18.1