1.0.3 • Published 9 years ago
chudnovsky v1.0.3
chudnovsky
Estimate pi with the Chudnovsky algorithm.
Example
var chudnovsky = require('chudnovsky');
chudnovsky(1);
// => 3.1415926535897936
Installation
$ npm install chudnovsky
API
var chudnovsky = require('chudnovsky');
chudnovsky(n)
Estimate pi using the Chudnovsky algorithm, evaluating the infinite sum up to
Number n
.