app_pi: Approximation of pi The function approaches the value of pi...

Description Usage Arguments Value Examples

View source: R/app_pi.R

Description

Approximation of pi

The function approaches the value of pi using a polygon of n sides (n defined by the nuber of files in path)

Usage

1
app_pi(path = ".", adjacent = 5, plot_polygon = TRUE, ...)

Arguments

path

the path to count the files to define n.

adjacent

the circle radius. Or the adjacent side of the set of triangles built at the polygon's centre.

plot_polygon

should the polygon be ploted?

...

options for plot

Value

an approximation of pi

Examples

1
2
app_pi()
app_pi(type = 'n', xaxt = "n", yaxt = 'n', xlab='', ylab ='', bty = 'n')

fcorra/apppi documentation built on Feb. 11, 2020, 12:03 a.m.