/buffon

A collection of scripts which simulate the Buffon's Needle problem

Primary LanguageJupyter Notebook

Buffon's Needle

A collection of Monte Carlo simulations of the Buffon's Needle problem.

  1. buffon_with_loops.py

    Basic simulation using a for-loop and matplotlib.

  2. buffon_with_functions.py

    More complete simulation with inline functions.

  3. buffon_with_class.py

    Simulation utilizing a needle class.

  4. buffons_notebook.ipynb

    A Jupyter Notebook with inline discussion.