Version finale exercice 2

parent 59a7aec8
...@@ -11,8 +11,14 @@ Mon ordinateur m'indique que \pi vaut approximativement : ...@@ -11,8 +11,14 @@ Mon ordinateur m'indique que \pi vaut approximativement :
(org-babel-do-load-languages (org-babel-do-load-languages
'org-babel-load-languages 'org-babel-load-languages
'((python . t))) '((python . t)))
(setq org-babel-python-command "python3.8")
#+end_src #+end_src
# La config ne fonctionneme pas dans le fichier de configuration. J'ai decidé de l'importer dans le code
#+RESULTS:
: python3.8
#+begin_src python :results output :session :exports both #+begin_src python :results output :session :exports both
from math import * from math import *
pi pi
...@@ -38,7 +44,7 @@ theta = np.random.uniform(size=N, low=0, high=pi/2) ...@@ -38,7 +44,7 @@ theta = np.random.uniform(size=N, low=0, high=pi/2)
#+RESULTS: #+RESULTS:
: :
: >>> >>> >>> >>> 0 : >>> >>> >>> >>> 3.128911138923655
......
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