From 69222145afef2d4b61b6fb23a64fd789617c273e Mon Sep 17 00:00:00 2001 From: paul BEZIAU Date: Thu, 9 Dec 2021 17:37:56 +0100 Subject: [PATCH] exercice 1, proposition 3 --- module2/exo1/toy_document_orgmode_python_fr.org | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module2/exo1/toy_document_orgmode_python_fr.org b/module2/exo1/toy_document_orgmode_python_fr.org index b8ae219..b2067df 100644 --- a/module2/exo1/toy_document_orgmode_python_fr.org +++ b/module2/exo1/toy_document_orgmode_python_fr.org @@ -1,10 +1,10 @@ -#+TITLE: À propos du calcul de π +#+TITLE: À propos du calcul de $\pi$ #+AUTHOR: Paul Beziau #+DATE: 9/12/2021 #+LANGUAGE: fr # #+PROPERTY: header-args :eval never-export -yes* En demandant à la lib maths +* En demandant à la lib maths Mon ordinateur m'indique que $\pi$ vaut /approximativement/: #+begin_src python :exports both :session @@ -16,7 +16,7 @@ pi : 3.141592653589793 * En utilisant la méthode des aiguilles de Buffon - Mais calculé avec la *méthode* des aiguilles de [[https://fr.wikipedia.org/wiki/Aiguille_de_Buffon][Buffon]], on obtiendrait comme *approximation* : + Mais calculé avec la *méthode* [[https://fr.wikipedia.org/wiki/Aiguille_de_Buffon][aiguilles deBuffon]], on obtiendrait comme *approximation* : #+begin_src python :exports both :session import numpy as np @@ -61,7 +61,7 @@ print(matplot_lib_filename) #+RESULTS: [[file:./figure.png]] -Il est alors aisé d'obtenir une approximation (pas terrible) de π en comptant combien de fois, +Il est alors aisé d'obtenir une approximation (pas terrible) de $\pi$ en comptant combien de fois, en moyenne, $X^2+Y^2$ est inférieur à 1 : #+begin_src python :exports both :session -- 2.18.1