Commit d6aefc4e authored by Adam Taheraly's avatar Adam Taheraly

Commit final ?

parent 9ff8fa52
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#+LaTeX_HEADER: \usepackage{amssymb} #+LaTeX_HEADER: \usepackage{amssymb}
#+LaTeX_HEADER: \usepackage{mathrsfs} #+LaTeX_HEADER: \usepackage{mathrsfs}
#+EXPORT_EXCLUDE_TAGS: #+EXPORT_EXCLUDE_TAGS:
# #+PROPERTY: header-args :eval never-export #+PROPERTY: header-args :session :export-both
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/htmlize.css"/> #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/readtheorg.css"/> #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/readtheorg.css"/>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#+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>
* En demandant à la lib maths * En demandant à la lib maths
Mon ordinateur m'indique $\pi$ vaut /approximativement/ Mon ordinateur m'indique que $\pi$ vaut /approximativement/
#+begin_src R :results output :session *R* :exports both #+begin_src R :results output :session *R* :exports both
pi pi
...@@ -49,7 +49,7 @@ theta = pi/2*runif(N) ...@@ -49,7 +49,7 @@ theta = pi/2*runif(N)
#+end_src #+end_src
#+RESULTS: #+RESULTS:
:
: [1] 3.14327 : [1] 3.14327
* Avec un argument "fréquentiel" de surface * Avec un argument "fréquentiel" de surface
...@@ -57,8 +57,7 @@ Sinon, une méthode plus simple à comprendre et ne faisant pas ...@@ -57,8 +57,7 @@ Sinon, une méthode plus simple à comprendre et ne faisant pas
intervenir d'appel à la fonction sinus se base sur le fait que intervenir d'appel à la fonction sinus se base sur le fait que
si $X \sim U(0,1)$ et $Y \sim si $X \sim U(0,1)$ et $Y \sim
U(0,1)$ alors $P[X^{2} + Y^{2} \le 1] = \pi/4$ U(0,1)$ alors $P[X^{2} + Y^{2} \le 1] = \pi/4$
(voir (voir [[https://fr.wikipedia.org/wiki/M%C3%A9thode_de_Monte-Carlo#D%C3%A9termination_de_la_valeur_de_%CF%80][méthode
[[https://fr.wikipedia.org/wiki/M%C3%A9thode_de_Monte-Carlo#D%C3%A9termination_de_la_valeur_de_%CF%80][méthode
de Monte Carlo sur Wikipédia]]). Le code suivant illustre ce fait : de Monte Carlo sur Wikipédia]]). Le code suivant illustre ce fait :
#+begin_src R :results output graphics :file (org-babel-temp-file "figure" ".png") :exports both :width 600 :height 400 :session *R* #+begin_src R :results output graphics :file (org-babel-temp-file "figure" ".png") :exports both :width 600 :height 400 :session *R*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment