This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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. |