buffons.needle: Buffons needle

Description Usage Arguments Value Author(s) Examples

Description

Estimating pi by simulation Buffons experiment.

Usage

1

Arguments

N

is number of needles to be thrown. N has to be a positive integer.

l

is the length of the needles. the length has to be positive and numeric.

d

is the distance between the lines on the floor. The distance has to be positive and numeric.

Value

Returns the estimated value of pi by Buffons experiment.

Author(s)

Tobias Mortensen
Department of mathematics and computer science (IMADA)
University of southern Denmark, Odense
tomor14@student.sdu.dk

Examples

1
buffons.needle(N=1000, l=1, d=1)

tomor14/Examst522 documentation built on May 31, 2019, 6:20 p.m.