mo-mo-666 / Buffon

Buffon's needle GUI simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buffon's Needle App

This is a GUI application for simulating Buffon's needle, using tkinter.

Requirements

  • Python3
  • Numpy

View

image1

Caution

  • I expect the length l of needles is the same as or smaller than the distance d between lines. So, if l is larger than d, the estimated value of π will be incorrect!
  • This app doesn't show the needle-falling animation.

About

Buffon's needle GUI simulator

License:MIT License


Languages

Language:Python 100.0%