From aa077d9afa5cc97b8aa1906fb88ba49dce21e02a Mon Sep 17 00:00:00 2001 From: Jade Bolaty Date: Sat, 2 Nov 2024 16:36:50 +0100 Subject: [PATCH] modif output file --- module2/exo1/toy_document_orgmode_R_fr.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module2/exo1/toy_document_orgmode_R_fr.org b/module2/exo1/toy_document_orgmode_R_fr.org index b7e59e0..9cd32f1 100644 --- a/module2/exo1/toy_document_orgmode_R_fr.org +++ b/module2/exo1/toy_document_orgmode_R_fr.org @@ -50,7 +50,7 @@ Sinon, une méthode plus simple à comprendre et ne faisant pas intervenir d'appel à lz fonction sinus se base sur le fait que si $X \sim U(0,1)$ et $Y \sim U(0,1)$ alors $P[X² + Y² <= 1] = \pi/4$ (voir [[https://fr.wikipedia.org/wiki/M%C3%A9thode_de_Monte-Carlo#D%C3%A9termination_de_la_valeur_de_%CF%80][méthode de Monte Carlo sur Wikipedia]]). Le code suivant illustre ce fait : -#+begin_src R :results file graphics :file figure_pi_mc1.png :exports both :width 600 :height 400 :session *R* +#+begin_src R :results file graphics :file (org-babel-temp-file "figure" ".png") :exports both :width 600 :height 400 :session *R* set.seed(42) N = 1000 df = data.frame(X = runif(N), Y = runif(N)) -- 2.18.1