Skip to content

Gerpea/pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find PI to nth digit

Calculates PI using Chudnovsky series

Table of Contents

  1. Run
  2. Options
  3. Examples

Run

npm install
node index.js [options]

or

npm run start -- [options]

Options

  • -d, --digits

    [required] Number of digits to calculate
  • -o, --out

    [optional] Path to save calculated pi
      if not specified the calculated PI will be output in console

Examples

$ node index.js -d 100
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170680
Execution time (hr): 0s 8.00646ms

About

Find PI to nth digit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published