Estimate pi with the Wallis product.
const wallis = require('wallis-product');
wallis(10);
// => 3.0677038066434976
wallis(10000000);
// => 3.141592575082479
$ npm install wallis-product
const wallis = require('wallis-product');
Returns an approximation of pi using the Wallis infinite product up to a term of
Number n
.