factory-0.3.2.1: Rational arithmetic in an irrational world.

Safe HaskellNone
LanguageHaskell2010

Factory.Math.Implementations.Pi.Borwein.Algorithm

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Defines the set of Borwein-type algorithms (currently only one) which have been implemented; http://www.pi314.net/eng/borwein.php.
Synopsis
  • data Algorithm squareRootAlgorithm factorialAlgorithm = Borwein1993 squareRootAlgorithm factorialAlgorithm

Types

Data-types

data Algorithm squareRootAlgorithm factorialAlgorithm Source #

  • Define those Borwein-series which have been implemented.
  • Though currently there's only one, provision has been made for the addition of more.

Constructors

Borwein1993 squareRootAlgorithm factorialAlgorithm

https://en.wikipedia.org/wiki/Borwein%27s_algorithm.

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

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

Methods

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

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

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

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

Methods

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

readList :: ReadS [Algorithm squareRootAlgorithm factorialAlgorithm] #

readPrec :: ReadPrec (Algorithm squareRootAlgorithm factorialAlgorithm) #

readListPrec :: ReadPrec [Algorithm squareRootAlgorithm factorialAlgorithm] #

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

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

Methods

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

show :: Algorithm squareRootAlgorithm factorialAlgorithm -> String #

showList :: [Algorithm squareRootAlgorithm factorialAlgorithm] -> ShowS #

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

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

Methods

def :: Algorithm squareRootAlgorithm factorialAlgorithm #

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

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

Methods

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

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

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