estimate_pi: Monte Carlo estimation of Pi

Description Usage Arguments Value Author(s) Examples

Description

This function makes an approximtion of the number pi based on a random drawing of points between -1 and 1 and establishes whether they are or not in a circle of radius 1.

Usage

1
estimate_pi(B = 5000, seed = 10)

Arguments

B

the length one numeric vector specifying the number of simulations.

seed

allows the function to have always the same output

Value

A matrix of two coordinates between -1 and 1 as well as a boolean output for each iterations

Author(s)

Germano David

Lomazzi Vincent

Bron Luca

Raisin Edgar

Grandadam Patrik

Examples

1
estimate_pi(B = 5000)

vincentlomazzi/ptds2018hw4g5 documentation built on May 3, 2019, 7:41 p.m.