factory-0.3.0.0: Rational arithmetic in an irrational world.

Safe HaskellNone
LanguageHaskell2010

Factory.Math.Implementations.Pi.AGM.Algorithm

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Defines the set of Arithmetic-geometric Mean-type Pi-algorithms which have been implemented; currently just one.

Synopsis

Types

Data-types

newtype Algorithm squareRootAlgorithm Source #

Defines the available algorithms.

Constructors

BrentSalamin squareRootAlgorithm 

Instances

Eq squareRootAlgorithm => Eq (Algorithm squareRootAlgorithm) Source # 

Methods

(==) :: Algorithm squareRootAlgorithm -> Algorithm squareRootAlgorithm -> Bool #

(/=) :: Algorithm squareRootAlgorithm -> Algorithm squareRootAlgorithm -> Bool #

Read squareRootAlgorithm => Read (Algorithm squareRootAlgorithm) Source # 

Methods

readsPrec :: Int -> ReadS (Algorithm squareRootAlgorithm) #

readList :: ReadS [Algorithm squareRootAlgorithm] #

readPrec :: ReadPrec (Algorithm squareRootAlgorithm) #

readListPrec :: ReadPrec [Algorithm squareRootAlgorithm] #

Show squareRootAlgorithm => Show (Algorithm squareRootAlgorithm) Source # 

Methods

showsPrec :: Int -> Algorithm squareRootAlgorithm -> ShowS #

show :: Algorithm squareRootAlgorithm -> String #

showList :: [Algorithm squareRootAlgorithm] -> ShowS #

Default squareRootAlgorithm => Default (Algorithm squareRootAlgorithm) Source # 

Methods

def :: Algorithm squareRootAlgorithm #

Algorithmic squareRootAlgorithm => Algorithmic (Algorithm squareRootAlgorithm) Source # 

Methods

openR :: Algorithm squareRootAlgorithm -> DecimalDigits -> Rational Source #

openI :: Algorithm squareRootAlgorithm -> DecimalDigits -> Integer Source #

openS :: Algorithm squareRootAlgorithm -> DecimalDigits -> String Source #