<h2id="orgd8b2fe9"><spanclass="section-number-2">2</span> En utilisant la méthode des aiguilles de Buffon</h2>
<divclass="outline-text-2"id="text-2">
<p>
Mais calculé avec la <b>méthode</b> des <ahref="https://fr.wikipedia.org/wiki/Aiguille_de_Buffon">aiguilles de Buffon</a>, on obtiendrait comme <b>approximation</b> :
<ahref="<matplotlib.collections.PathCollection object at 0x7f4200f5fac0>"><matplotlib.collections.PathCollection object at 0x7f4200f5fac0></a>
</p>
<divclass="figure">
<p><imgsrc="./figure.png"alt="figure.png"/>
</p>
</div>
<p>
Il est alors aisé d'obtenir une approximation (pas terrible) de π en
comptant combien de fois, en moyenne, X2+Y2 est inférieur à 1 :