| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Factory.Math.Implementations.Pi.Ramanujan.Algorithm
Contents
Description
AUTHOR- Dr. Alistair Ward
DESCRIPTION- Defines the set of Ramanujan-type algorithms which have been implemented; https://en.wikipedia.org/wiki/Pi.
- data Algorithm squareRootAlgorithm factorialAlgorithm
- = Classic squareRootAlgorithm factorialAlgorithm
- | Chudnovsky squareRootAlgorithm factorialAlgorithm
Types
Data-types
data Algorithm squareRootAlgorithm factorialAlgorithm Source #
Define those Ramanujan-series which have been implemented.
Constructors
| Classic squareRootAlgorithm factorialAlgorithm | The original version. |
| Chudnovsky squareRootAlgorithm factorialAlgorithm | A variant found by the Chudnovsky brothers. |
Instances
| (Eq factorialAlgorithm, Eq squareRootAlgorithm) => Eq (Algorithm squareRootAlgorithm factorialAlgorithm) Source # | |
| (Read factorialAlgorithm, Read squareRootAlgorithm) => Read (Algorithm squareRootAlgorithm factorialAlgorithm) Source # | |
| (Show factorialAlgorithm, Show squareRootAlgorithm) => Show (Algorithm squareRootAlgorithm factorialAlgorithm) Source # | |
| (Default squareRootAlgorithm, Default factorialAlgorithm) => Default (Algorithm squareRootAlgorithm factorialAlgorithm) Source # | |
| (Algorithmic squareRootAlgorithm, Algorithmic factorialAlgorithm) => Algorithmic (Algorithm squareRootAlgorithm factorialAlgorithm) Source # | |