Update toy_document_fr.Rmd

parent 32cd2657
......@@ -17,11 +17,11 @@ pi
Mais calculé avec la méthode des aiguilles de Buffon, on obtiendrait comme approximation :
set.seed(42)
'set.seed(42)
N = 100000
x = runif(N)
theta = pi/2*runif(N)
2/(mean(x+sin(theta)>1))
2/(mean(x+sin(theta)>1))'
## [1] 3.14327
......
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