diff --git a/module2/exo1/toy_document_orgmode_python_en.org b/module2/exo1/toy_document_orgmode_python_en.org index 5782f493934678ba782fb65634a4d86e5f3adefc..2098a424ea98a4f7cba034129fa21c2b707a7e5e 100644 --- a/module2/exo1/toy_document_orgmode_python_en.org +++ b/module2/exo1/toy_document_orgmode_python_en.org @@ -1,8 +1,5 @@ -#+TITLE: Your title -#+AUTHOR: Your name -#+DATE: Today's date +#+TITLE: On the computation of pi #+LANGUAGE: en -# #+PROPERTY: header-args :eval never-export #+HTML_HEAD: #+HTML_HEAD: @@ -11,6 +8,29 @@ #+HTML_HEAD: #+HTML_HEAD: +# #+PROPERTY: header-args :eval never-export + +* Table of Contents + +* Asking the math library +My computer tells me that \pi is /approximatively/ + +#+begin_src python :results value :session :exports both +from math import * +pi +#+end_src + +#+RESULTS: +: 3.141592653589793 + +* * Buffon's needle +Applying the method of +[[https://en.wikipedia.org/wiki/Buffon%2527s_needle_problem][Buffon's needle]] we get the *approximation* + +#+begin_src python :results value :session :exports both +import numpy as np +#+end_src + * Some explanations This is an org-mode document with code examples in R. Once opened in