From 2821a7b4ce5f57e6d322a0e5c8f5306e204a4dea Mon Sep 17 00:00:00 2001 From: 99d292aec7079aad242d36ac4efbad08 <99d292aec7079aad242d36ac4efbad08@app-learninglab.inria.fr> Date: Tue, 7 Apr 2020 19:55:09 +0000 Subject: [PATCH] Update toy_document_orgmode_python_fr.org --- module2/exo1/toy_document_orgmode_python_fr.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module2/exo1/toy_document_orgmode_python_fr.org b/module2/exo1/toy_document_orgmode_python_fr.org index 6c60961..b2a492f 100644 --- a/module2/exo1/toy_document_orgmode_python_fr.org +++ b/module2/exo1/toy_document_orgmode_python_fr.org @@ -40,8 +40,8 @@ theta = np.random.uniform(size=N, low=0, high=pi/2) * Avec un argument "fréquentiel" de surface Sinon, une méthode plus simple à comprendre et ne faisant pas intervenir d'appel à la fonction sinus se base sur le fait que si -$X\sim U(0,1)$ et $Y\sim U(0,1)$ alors $P[X^2+Y^2\leq 1] = \pi/4$ (voir [[https://fr.wikipedia.org/wiki/M%25C3%25A9thode_de_Monte-Carlo#D%25C3%25A9termination_de_la_valeur_de_%25CF%2580][méthode -de +$X\sim +U(0,1)$ et $Y\sim U(0,1)$ alors $P[X^2+Y^2\leq 1] = \pi/4$ (voir [[https://fr.wikipedia.org/wiki/M%25C3%25A9thode_de_Monte-Carlo#D%25C3%25A9termination_de_la_valeur_de_%25CF%2580][méthode de Monte Carlo sur Wikipedia]]). Le code suivant illustre ce fait : #+begin_src python :results output file :var matplot_lib_filename="figure_pi_mc2.png" :exports both :session *python* -- 2.18.1