From 5c89385f870a5f5eba38a62bbcb51c7a266f47ff Mon Sep 17 00:00:00 2001 From: e4f320902ce7af67c04ae96f73f62e1c Date: Wed, 13 Oct 2021 20:51:13 +0000 Subject: [PATCH] Update toy_document_orgmode_python_fr.org --- module2/exo1/toy_document_orgmode_python_fr.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module2/exo1/toy_document_orgmode_python_fr.org b/module2/exo1/toy_document_orgmode_python_fr.org index 3cf5c45..8c91859 100644 --- a/module2/exo1/toy_document_orgmode_python_fr.org +++ b/module2/exo1/toy_document_orgmode_python_fr.org @@ -25,7 +25,8 @@ pi Mais calculé avec la *méthode* des [[https://fr.wikipedia.org/wiki/Aiguille_de_Buffon][aiguilles de Buffon]], on obtiendrait comme *approximation* : -#+begin_src python :results value :session *python* :exports bothimport numpy as np +#+begin_src python :results value :session *python* :exports both +import numpy as np np.random.seed(seed=42) N = 10000 x = np.random.uniform(size=N, low=0, high=1) -- 2.18.1