factory-0.2.1.1: Rational arithmetic in an irrational world.

Safe HaskellNone
LanguageHaskell98

Factory.Math.Implementations.Pi.Ramanujan.Algorithm

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Defines the set of Ramanujan-type algorithms which have been implemented; http://en.wikipedia.org/wiki/Pi.

Synopsis

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 squareRootAlgorithm, Eq factorialAlgorithm) => Eq (Algorithm squareRootAlgorithm factorialAlgorithm) 
(Read squareRootAlgorithm, Read factorialAlgorithm) => Read (Algorithm squareRootAlgorithm factorialAlgorithm) 
(Show squareRootAlgorithm, Show factorialAlgorithm) => Show (Algorithm squareRootAlgorithm factorialAlgorithm) 
(Defaultable squareRootAlgorithm, Defaultable factorialAlgorithm) => Defaultable (Algorithm squareRootAlgorithm factorialAlgorithm) 
(Algorithmic squareRootAlgorithm, Algorithmic factorialAlgorithm) => Algorithmic (Algorithm squareRootAlgorithm factorialAlgorithm)