Commit 3baf9673 authored by Tommy Rushton's avatar Tommy Rushton

Start reproducing target notebook.

parent fedde073
#+TITLE: Your title #+TITLE: On the computation of pi
#+AUTHOR: Your name
#+DATE: Today's date
#+LANGUAGE: en #+LANGUAGE: en
# #+PROPERTY: header-args :eval never-export
#+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"/>
...@@ -11,6 +8,29 @@ ...@@ -11,6 +8,29 @@
#+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>
# #+PROPERTY: header-args :eval never-export
* Table of Contents
* Asking the math library
My computer tells me that \pi is /approximatively/
#+begin_src python :results value :session :exports both
from math import *
pi
#+end_src
#+RESULTS:
: 3.141592653589793
* * Buffon's needle
Applying the method of
[[https://en.wikipedia.org/wiki/Buffon%2527s_needle_problem][Buffon's needle]] we get the *approximation*
#+begin_src python :results value :session :exports both
import numpy as np
#+end_src
* Some explanations * Some explanations
This is an org-mode document with code examples in R. Once opened in This is an org-mode document with code examples in R. Once opened in
......
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