factory-0.3.2.3: Rational arithmetic in an irrational world.
Safe HaskellNone
LanguageHaskell2010

Factory.Math.Implementations.Pi.AGM.Algorithm

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

Instances details
Eq squareRootAlgorithm => Eq (Algorithm squareRootAlgorithm) Source # 
Instance details

Defined in Factory.Math.Implementations.Pi.AGM.Algorithm

Methods

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

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

Read squareRootAlgorithm => Read (Algorithm squareRootAlgorithm) Source # 
Instance details

Defined in Factory.Math.Implementations.Pi.AGM.Algorithm

Methods

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

readList :: ReadS [Algorithm squareRootAlgorithm] #

readPrec :: ReadPrec (Algorithm squareRootAlgorithm) #

readListPrec :: ReadPrec [Algorithm squareRootAlgorithm] #

Show squareRootAlgorithm => Show (Algorithm squareRootAlgorithm) Source # 
Instance details

Defined in Factory.Math.Implementations.Pi.AGM.Algorithm

Methods

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

show :: Algorithm squareRootAlgorithm -> String #

showList :: [Algorithm squareRootAlgorithm] -> ShowS #

Default squareRootAlgorithm => Default (Algorithm squareRootAlgorithm) Source # 
Instance details

Defined in Factory.Math.Implementations.Pi.AGM.Algorithm

Methods

def :: Algorithm squareRootAlgorithm #

Algorithmic squareRootAlgorithm => Algorithmic (Algorithm squareRootAlgorithm) Source # 
Instance details

Defined in Factory.Math.Implementations.Pi.AGM.Algorithm

Methods

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

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

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