Safe Haskell | None |
---|---|

Language | Haskell98 |

`AUTHOR`

- Dr. Alistair Ward
`DESCRIPTION`

- Implements a
*Bailey-Borwein-Plouffe*formula; http://mathworld.wolfram.com/PiFormulas.html - Surprisingly, because of the huge size of the
`Rational`

quantities, it is a*single*call to`Factory.Math.Summation.sum'`

, rather than the calculation of the many terms in the series, which is the performance-bottleneck.

- openR :: Series -> DecimalDigits -> Rational

# Functions

:: Series | This |

-> DecimalDigits | The number of decimal digits required. |

-> Rational |

Returns *Pi*, accurate to the specified number of decimal digits.