Commit 426d4d4f authored by Anton Y.'s avatar Anton Y.

task try 9

parent 2226af18
...@@ -55,6 +55,7 @@ print(matplot_lib_filename) ...@@ -55,6 +55,7 @@ print(matplot_lib_filename)
#+end_src #+end_src
It is then straightforward to obtain a (not really good) approximation to $\pi$ by counting how many times, on average, $X^2 + Y^2$ is smaller than 1: It is then straightforward to obtain a (not really good) approximation to $\pi$ by counting how many times, on average, $X^2 + Y^2$ is smaller than 1:
#+begin_src python :results output :session *python* :exports both #+begin_src python :results output :session *python* :exports both
4*np.mean(accept) 4*np.mean(accept)
#+end_src #+end_src
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