Update toy_document_fr.Rmd

parent a9338fbb
......@@ -10,13 +10,22 @@ knitr::opts_chunk$set(echo = TRUE)
```
## En demandant à la lib maths
Mon ordinateur m'indique que $\pi$ vaut *approximativement*
```{r cars}
pi
```
## En utilisant la méthode des aiguilles de Buffon
Mais calculé avec la **méthode** , on obtiendrait comme **approximation** :
```{r cars}
set.seed(42)
N = 100000
x = runif(N)
theta = pi/2*runif(N)
2/(mean(x+sin(theta)>1))
```
## Quelques explications
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment