diff --git a/journal_de_bord.md b/journal_de_bord.md index a32251a786c4dbfb0fd4cd4e8af35b95bc900baa..b1fc80a26ccd922e97822c28afbe8221d5855793 100644 --- a/journal_de_bord.md +++ b/journal_de_bord.md @@ -39,7 +39,17 @@ Une ligne de `code` ## module2 -## exo1: -from math import * -print(pi) +## exo1: on trouve tout dans jupyter module 2 +1. On the computation of π +2. Buffon’s needle + +Applying the method of Buffon’s needle, we get the approximation for pi in our case +3. Using a surface fraction argument + +A method that is easier to understand and does not make use of the sin function is based on the fact that if X ∼ U(0, 1) and Y ∼ U(0, 1), then P[X2 + Y2 ≤ 1] = π/4 . The following code uses this approach: + +4. Écrire le lien "aiguilles de Buffon" vers wikipedia + +5. Écrire le code de la méthode de Buffon pour Python et pour R +6. ECRIRE DANS LE LANGUAGE R