Description Usage Arguments Value Examples
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)
1 | app_pi(path = ".", adjacent = 5, plot_polygon = TRUE, ...)
|
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 |
an approximation of pi
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.