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
00457cfdbb94b4c89e4b2ff8b27dc825
mooc-rr
Commits
0f90d80d
Commit
0f90d80d
authored
Apr 01, 2020
by
Clément Courageux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exo2 and 3
parent
28ea4a3b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
456 additions
and
13 deletions
+456
-13
cosxsx.png
module2/exo1/cosxsx.png
+0
-0
toy_document_orgmode_python_fr.html
module2/exo1/toy_document_orgmode_python_fr.html
+11
-11
toy_document_orgmode_python_fr.html~
module2/exo1/toy_document_orgmode_python_fr.html~
+381
-0
data.txt
module2/exo2/data.txt
+1
-0
exercice_python_fr.org
module2/exo2/exercice_python_fr.org
+22
-1
exercice_python_fr.org
module2/exo3/exercice_python_fr.org
+41
-1
No files found.
module2/exo1/cosxsx.png
View replaced file @
28ea4a3b
View file @
0f90d80d
19 KB
|
W:
|
H:
21.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
module2/exo1/toy_document_orgmode_python_fr.html
View file @
0f90d80d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"fr"
xml:lang=
"fr"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"fr"
xml:lang=
"fr"
>
<head>
<head>
<!-- 2020-04-01 Wed 10:
17
-->
<!-- 2020-04-01 Wed 10:
20
-->
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/>
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<title>
À propos du calcul de
π
</title>
<title>
À propos du calcul de
π
</title>
...
@@ -273,15 +273,15 @@ for the JavaScript code in this tag.
...
@@ -273,15 +273,15 @@ for the JavaScript code in this tag.
<h2>
Table des matières
</h2>
<h2>
Table des matières
</h2>
<div
id=
"text-table-of-contents"
>
<div
id=
"text-table-of-contents"
>
<ul>
<ul>
<li><a
href=
"#org
3de6e6c
"
>
1. En demandant à la lib maths
</a></li>
<li><a
href=
"#org
e71b253
"
>
1. En demandant à la lib maths
</a></li>
<li><a
href=
"#org
833fcbb
"
>
2. En utilisant la méthode des aiguilles de Buffon
</a></li>
<li><a
href=
"#org
16efc18
"
>
2. En utilisant la méthode des aiguilles de Buffon
</a></li>
<li><a
href=
"#org
9658f1f
"
>
3. Avec un argument "fréquentiel" de surface
</a></li>
<li><a
href=
"#org
1c65bd9
"
>
3. Avec un argument "fréquentiel" de surface
</a></li>
</ul>
</ul>
</div>
</div>
</div>
</div>
<div
id=
"outline-container-org
3de6e6c
"
class=
"outline-2"
>
<div
id=
"outline-container-org
e71b253
"
class=
"outline-2"
>
<h2
id=
"org
3de6e6c
"
><span
class=
"section-number-2"
>
1
</span>
En demandant à la lib maths
</h2>
<h2
id=
"org
e71b253
"
><span
class=
"section-number-2"
>
1
</span>
En demandant à la lib maths
</h2>
<div
class=
"outline-text-2"
id=
"text-1"
>
<div
class=
"outline-text-2"
id=
"text-1"
>
<p>
<p>
Mon ordinateur m'indique que
π
vaut
<i>
approximativement
</i>
:
Mon ordinateur m'indique que
π
vaut
<i>
approximativement
</i>
:
...
@@ -299,8 +299,8 @@ pi
...
@@ -299,8 +299,8 @@ pi
</div>
</div>
</div>
</div>
<div
id=
"outline-container-org
833fcbb
"
class=
"outline-2"
>
<div
id=
"outline-container-org
16efc18
"
class=
"outline-2"
>
<h2
id=
"org
833fcbb
"
><span
class=
"section-number-2"
>
2
</span>
En utilisant la méthode des aiguilles de Buffon
</h2>
<h2
id=
"org
16efc18
"
><span
class=
"section-number-2"
>
2
</span>
En utilisant la méthode des aiguilles de Buffon
</h2>
<div
class=
"outline-text-2"
id=
"text-2"
>
<div
class=
"outline-text-2"
id=
"text-2"
>
<p>
<p>
Mais calculé avec la
<b>
méthode
</b>
des
<a
href=
"https://fr.wikipedia.org/wiki/Aiguille_de_Buffon"
>
aiguilles de Buffon
</a>
, on obtiendrait comme
Mais calculé avec la
<b>
méthode
</b>
des
<a
href=
"https://fr.wikipedia.org/wiki/Aiguille_de_Buffon"
>
aiguilles de Buffon
</a>
, on obtiendrait comme
...
@@ -323,8 +323,8 @@ np.random.seed(seed=42)
...
@@ -323,8 +323,8 @@ np.random.seed(seed=42)
</div>
</div>
</div>
</div>
<div
id=
"outline-container-org
9658f1f
"
class=
"outline-2"
>
<div
id=
"outline-container-org
1c65bd9
"
class=
"outline-2"
>
<h2
id=
"org
9658f1f
"
><span
class=
"section-number-2"
>
3
</span>
Avec un argument "fréquentiel" de surface
</h2>
<h2
id=
"org
1c65bd9
"
><span
class=
"section-number-2"
>
3
</span>
Avec un argument "fréquentiel" de surface
</h2>
<div
class=
"outline-text-2"
id=
"text-3"
>
<div
class=
"outline-text-2"
id=
"text-3"
>
<p>
<p>
Sinon, une méthode plus simple à comprendre et ne faisant pas intervenir d'appel
Sinon, une méthode plus simple à comprendre et ne faisant pas intervenir d'appel
...
@@ -374,7 +374,7 @@ combien de fois, en moyenne, \(X^2+Y^2\) est inférieur à 1 :
...
@@ -374,7 +374,7 @@ combien de fois, en moyenne, \(X^2+Y^2\) est inférieur à 1 :
<div
id=
"postamble"
class=
"status"
>
<div
id=
"postamble"
class=
"status"
>
<p
class=
"date"
>
Date: 01/04/2020
</p>
<p
class=
"date"
>
Date: 01/04/2020
</p>
<p
class=
"author"
>
Auteur: Clément
</p>
<p
class=
"author"
>
Auteur: Clément
</p>
<p
class=
"date"
>
Created: 2020-04-01 Wed 10:
17
</p>
<p
class=
"date"
>
Created: 2020-04-01 Wed 10:
20
</p>
<p
class=
"validation"
><a
href=
"http://validator.w3.org/check?uri=referer"
>
Validate
</a></p>
<p
class=
"validation"
><a
href=
"http://validator.w3.org/check?uri=referer"
>
Validate
</a></p>
</div>
</div>
</body>
</body>
...
...
module2/exo1/toy_document_orgmode_python_fr.html~
0 → 100644
View file @
0f90d80d
This diff is collapsed.
Click to expand it.
module2/exo2/data.txt
0 → 100644
View file @
0f90d80d
14.0, 7.6, 11.2, 12.8, 12.5, 9.9, 14.9, 9.4, 16.9, 10.2, 14.9, 18.1, 7.3, 9.8, 10.9,12.2, 9.9, 2.9, 2.8, 15.4, 15.7, 9.7, 13.1, 13.2, 12.3, 11.7, 16.0, 12.4, 17.9, 12.2, 16.2, 18.7, 8.9, 11.9, 12.1, 14.6, 12.1, 4.7, 3.9, 16.9, 16.8, 11.3, 14.4, 15.7, 14.0, 13.6, 18.0, 13.6, 19.9, 13.7, 17.0, 20.5, 9.9, 12.5, 13.2, 16.1, 13.5, 6.3, 6.4, 17.6, 19.1, 12.8, 15.5, 16.3, 15.2, 14.6, 19.1, 14.4, 21.4, 15.1, 19.6, 21.7, 11.3, 15.0, 14.3, 16.8, 14.0, 6.8, 8.2, 19.9, 20.4, 14.6, 16.4, 18.7, 16.8, 15.8, 20.4, 15.8, 22.4, 16.2, 20.3, 23.4, 12.1, 15.5, 15.4, 18.4, 15.7, 10.2, 8.9, 21.0
module2/exo2/exercice_python_fr.org
View file @
0f90d80d
...
@@ -11,7 +11,28 @@
...
@@ -11,7 +11,28 @@
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/lib/js/jquery.stickytableheaders.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/lib/js/jquery.stickytableheaders.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/readtheorg/js/readtheorg.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/readtheorg/js/readtheorg.js"></script>
* Quelques explications
#+begin_src python :results output :session :exports both
import numpy as np
data = [14.0, 7.6, 11.2, 12.8, 12.5, 9.9, 14.9, 9.4, 16.9, 10.2, 14.9, 18.1, 7.3, 9.8, 10.9,12.2, 9.9, 2.9, 2.8, 15.4, 15.7, 9.7, 13.1, 13.2, 12.3, 11.7, 16.0, 12.4, 17.9, 12.2, 16.2, 18.7, 8.9, 11.9, 12.1, 14.6, 12.1, 4.7, 3.9, 16.9, 16.8, 11.3, 14.4, 15.7, 14.0, 13.6, 18.0, 13.6, 19.9, 13.7, 17.0, 20.5, 9.9, 12.5, 13.2, 16.1, 13.5, 6.3, 6.4, 17.6, 19.1, 12.8, 15.5, 16.3, 15.2, 14.6, 19.1, 14.4, 21.4, 15.1, 19.6, 21.7, 11.3, 15.0, 14.3, 16.8, 14.0, 6.8, 8.2, 19.9, 20.4, 14.6, 16.4, 18.7, 16.8, 15.8, 20.4, 15.8, 22.4, 16.2, 20.3, 23.4, 12.1, 15.5, 15.4, 18.4, 15.7, 10.2, 8.9, 21.0]
print("Average: "+str(np.average(data)))
print("Std: "+str(np.std(data, ddof=1)))
print("Min: "+str(np.min(data)))
print("Max: "+str(np.max(data)))
print("Median: "+str(np.median(data)))
#+end_src
#+RESULTS:
: Average: 14.113000000000001
: Std: 4.334094455301447
: Min: 2.8
: Max: 23.4
: Median: 14.5
* Quelques explications :noexport:
Ceci est un document org-mode avec quelques exemples de code
Ceci est un document org-mode avec quelques exemples de code
python. Une fois ouvert dans emacs, ce document peut aisément être
python. Une fois ouvert dans emacs, ce document peut aisément être
...
...
module2/exo3/exercice_python_fr.org
View file @
0f90d80d
...
@@ -11,7 +11,47 @@
...
@@ -11,7 +11,47 @@
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/lib/js/jquery.stickytableheaders.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/lib/js/jquery.stickytableheaders.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/readtheorg/js/readtheorg.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/readtheorg/js/readtheorg.js"></script>
* Quelques explications
#+begin_src python :results file :session :var matplot_lib_filename=(org-babel-temp-file "figure1" ".png") :exports both
import matplotlib.pyplot as plt
import numpy
data = [14.0, 7.6, 11.2, 12.8, 12.5, 9.9, 14.9, 9.4, 16.9, 10.2, 14.9, 18.1, 7.3, 9.8, 10.9,12.2, 9.9, 2.9, 2.8, 15.4, 15.7, 9.7, 13.1, 13.2, 12.3, 11.7, 16.0, 12.4, 17.9, 12.2, 16.2, 18.7, 8.9, 11.9, 12.1, 14.6, 12.1, 4.7, 3.9, 16.9, 16.8, 11.3, 14.4, 15.7, 14.0, 13.6, 18.0, 13.6, 19.9, 13.7, 17.0, 20.5, 9.9, 12.5, 13.2, 16.1, 13.5, 6.3, 6.4, 17.6, 19.1, 12.8, 15.5, 16.3, 15.2, 14.6, 19.1, 14.4, 21.4, 15.1, 19.6, 21.7, 11.3, 15.0, 14.3, 16.8, 14.0, 6.8, 8.2, 19.9, 20.4, 14.6, 16.4, 18.7, 16.8, 15.8, 20.4, 15.8, 22.4, 16.2, 20.3, 23.4, 12.1, 15.5, 15.4, 18.4, 15.7, 10.2, 8.9, 21.0]
x=numpy.linspace(-15,15)
plt.figure(figsize=(10,5))
plt.plot(data)
plt.tight_layout()
plt.savefig(matplot_lib_filename)
matplot_lib_filename
#+end_src
#+RESULTS:
[[file:/tmp/babel-AQqtCi/figureR2yZWS.png]]
#+begin_src python :results file :session :var matplot_lib_filename=(org-babel-temp-file "figurehist" ".png") :exports both
import matplotlib.pyplot as plt
import numpy
x=numpy.linspace(-15,15)
plt.figure(figsize=(10,5))
plt.hist(data, facecolor='blue',alpha=0.5, edgecolor='black')
plt.grid(b='True', linestyle='--')
plt.tight_layout()
plt.savefig(matplot_lib_filename)
matplot_lib_filename
#+end_src
#+RESULTS:
[[file:/tmp/babel-AQqtCi/figurehist6XxvCK.png]]
* Quelques explications :noexport:
Ceci est un document org-mode avec quelques exemples de code
Ceci est un document org-mode avec quelques exemples de code
python. Une fois ouvert dans emacs, ce document peut aisément être
python. Une fois ouvert dans emacs, ce document peut aisément être
...
...
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