Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
5f6e3190226c7f41316c7d31ba862720
mooc-rr
Commits
69222145
Commit
69222145
authored
Dec 09, 2021
by
paul BEZIAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exercice 1, proposition 3
parent
37ffbd1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
toy_document_orgmode_python_fr.org
module2/exo1/toy_document_orgmode_python_fr.org
+4
-4
No files found.
module2/exo1/toy_document_orgmode_python_fr.org
View file @
69222145
#+TITLE: À propos du calcul de
π
#+TITLE: À propos du calcul de
$\pi$
#+AUTHOR: Paul Beziau
#+AUTHOR: Paul Beziau
#+DATE: 9/12/2021
#+DATE: 9/12/2021
#+LANGUAGE: fr
#+LANGUAGE: fr
# #+PROPERTY: header-args :eval never-export
# #+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/:
Mon ordinateur m'indique que $\pi$ vaut /approximativement/:
#+begin_src python :exports both :session
#+begin_src python :exports both :session
...
@@ -16,7 +16,7 @@ pi
...
@@ -16,7 +16,7 @@ pi
: 3.141592653589793
: 3.141592653589793
* En utilisant la méthode des aiguilles de Buffon
* 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 de
Buffon]], on obtiendrait comme *approximation* :
#+begin_src python :exports both :session
#+begin_src python :exports both :session
import numpy as np
import numpy as np
...
@@ -61,7 +61,7 @@ print(matplot_lib_filename)
...
@@ -61,7 +61,7 @@ print(matplot_lib_filename)
#+RESULTS:
#+RESULTS:
[[file:./figure.png]]
[[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 :
en moyenne, $X^2+Y^2$ est inférieur à 1 :
#+begin_src python :exports both :session
#+begin_src python :exports both :session
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment