Safe Haskell | None |
---|---|
Language | Haskell98 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Defines Borwein series for Pi; http://en.wikipedia.org/wiki/Borwein%27s_algorithm
- openR :: Series squareRootAlgorithm factorialAlgorithm -> squareRootAlgorithm -> factorialAlgorithm -> DecimalDigits -> Rational
Functions
:: Series squareRootAlgorithm factorialAlgorithm | This Pi-algorithm is parameterised by the type of other algorithms to use. |
-> squareRootAlgorithm | The specific square-root algorithm to apply to the above series. |
-> factorialAlgorithm | The specific factorial-algorithm to apply to the above series. |
-> DecimalDigits | The number of decimal digits required. |
-> Rational |
Returns Pi, accurate to the specified number of decimal digits.