Skip to content

Instantly share code, notes, and snippets.

View bcavileer's full-sized avatar
💥

Benjamin Cavileer bcavileer

💥
View GitHub Profile
@bcavileer
bcavileer / spigot.js
Created March 19, 2018 19:34 — forked from s-shin/spigot.js
Simple Pi calculation library for JavaScript
/**
* spigot.js
* version 1.1.0
* (C) 2012 shin <s2pch.luck at gmail.com>
* Licensed under the Apache License 2.0
* http://opensource.org/licenses/apache2.0
*
* The Pi calculation is based on the spigot (streaming) algorithm[1].
* This library depends on jsbn[2] (jsbn.js and jsbn2.js),
* one of BigInteger library written by pure JavaScript.