Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kaue/bbp-formula

🔢 Bailey-Borwein-Plouffe formula
https://github.com/kaue/bbp-formula

Last synced: about 2 months ago
JSON representation

🔢 Bailey-Borwein-Plouffe formula

Awesome Lists containing this project

README

        

# Bailey-Borwein-Plouffe formula

## Install

`npm i --save bbp-formula`

## Usage

```javascript
const bbp = require('bbp-formula');
console.time('estimation');
const calculatedPi = bbp(0);
console.timeEnd('estimation');
console.log(calculatedPi.toString());
```

### Refs
- http://stackoverflow.com/questions/4484489/using-basic-arithmetics-for-calculating-pi-with-arbitary-precision