2.0.0 • Published 8 months ago

viete-formula v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 months ago

viete-formula

Estimate pi with Viète's formula. Converges way faster than the Leibniz series does.

Example

const vieteFormula = require('viete-formula');

vieteFormula(28);
// => 3.141592653589794

Installation

$ npm install viete-formula

API

const vieteFormula = require('viete-formula');

vieteFormula(n)

Estimate pi with Viète's formula. The larger Number n provided, the further the infinite product will go (yielding a more accurate estimate).

2.0.0

8 months ago

1.0.0

10 years ago