Calculates PI using Chudnovsky series
npm install
node index.js [options]
or
npm run start -- [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
$ node index.js -d 100
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170680
Execution time (hr): 0s 8.00646ms