Commit 6509bb73 authored by Victor-M-Gomes's avatar Victor-M-Gomes

Module2 exo4

parent 33786a46
# -*- mode: org -*- # -*- mode: org -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
#+STARTUP: overview indent inlineimages logdrawer #+STARTUP: overview indent inlineimages logdrawer
#+TITLE: Journal #+TITLE: Journal MOOC
#+AUTHOR: Victor Martins Gomes #+AUTHOR: Victor Martins Gomes
#+LANGUAGE: en #+LANGUAGE: en
#+TAGS: LIG(L) HOME(H) Europe(E) Blog(B) noexport(n) Stats(S) #+TAGS: LIG(L) HOME(H) Europe(E) Blog(B) noexport(n) Stats(S)
......
...@@ -50,6 +50,8 @@ print(matplot_lib_filename) ...@@ -50,6 +50,8 @@ print(matplot_lib_filename)
#+RESULTS: #+RESULTS:
[[file:figure_pi_mc2.png]] [[file:figure_pi_mc2.png]]
fig, ax = plt.subplots(1)
figure_pi_mc2.png]]
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:
......
This diff is collapsed.
This diff is collapsed.
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