Skip to content

goldengecko/PiEstimator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PI Estimator

Installation:

cd to the folder where this file is, then

npm install

To build:

npm run build

To run:

node dist/index.js

To show the configuration options:

node dist/index.js --help


The source code is in the src folder. Only 2 files:

index.js drives everything, and does the management of the worker cluster and averaging the results.

PiEstimator.js is a class that generates the points, works out what is inside the circle to calculate the approximate area and from there, the estimate of Pi.

About

Project for estimating Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published