From ab08b8f97aa598860200cd84d8a1ea8a9c0fc4de Mon Sep 17 00:00:00 2001 From: 12cc772fde428a92a737775c5b8ea0f8 <12cc772fde428a92a737775c5b8ea0f8@app-learninglab.inria.fr> Date: Mon, 20 Nov 2023 15:22:42 +0000 Subject: [PATCH] Update journal_de_bord.md --- journal_de_bord.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/journal_de_bord.md b/journal_de_bord.md index a32251a..b1fc80a 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 -- 2.18.1