PiCal: Calculate the value of Pi

Description Usage Arguments Value Examples

Description

This function used coordinates generated from two uniform distributions and count how many of them falled into a circle to calculate the value of Pi

Usage

1
PiCal(sample.size)

Arguments

sample.size

the sample size used to calculate Pi

Value

Pi, sample, sample indicator

Examples

1
2
PiCal(30)
PiCal(300)

yang0117/RGRP documentation built on May 27, 2019, 2:01 a.m.