# leibniz-series

[![Build Status](https://img.shields.io/travis/KenanY/leibniz-series.svg)](https://travis-ci.org/KenanY/leibniz-series)

Estimate pi with the
[Leibniz series](https://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80).

## Example

``` javascript
var leibnizSeries = require('leibniz-series');

leibnizSeries(100);
// => 3.1514934010709914 (meh, close enough)

leibnizSeries(200);
// => 3.1465677471829556 (a little better!)
```

## Installation

``` bash
$ npm install leibniz-series
```

## API

``` javascript
var leibnizSeries = require('leibniz-series');
```

### `leibnizSeries(n)`

Estimate pi using the Leibniz series up to _Number_ `n`.
# leibniz-series

[![Build Status](https://img.shields.io/travis/KenanY/leibniz-series.svg)](https://travis-ci.org/KenanY/leibniz-series)
[![Dependency Status](https://img.shields.io/gemnasium/KenanY/leibniz-series.svg)](https://gemnasium.com/KenanY/leibniz-series)

Estimate pi with the
[Leibniz series](https://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80).

## Example

``` javascript
var leibnizSeries = require('leibniz-series');

leibnizSeries(100);
// => 3.1514934010709914 (meh, close enough)

leibnizSeries(200);
// => 3.1465677471829556 (a little better!)
```

## Installation

``` bash
$ npm install leibniz-series
```

## API

``` javascript
var leibnizSeries = require('leibniz-series');
```

### `leibnizSeries(n)`

Estimate pi using the Leibniz series up to _Number_ `n`.
Add Gemnasium dependency status badge
Add Gemnasium dependency status badge
