factory-0.3.0.0: Rational arithmetic in an irrational world.

Safe HaskellSafe
LanguageHaskell2010

Factory.Math.Implementations.Pi.BBP.Series

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Defines a Bailey-Borwein-Plouffe formula; http://mathworld.wolfram.com/PiFormulas.html

Synopsis

Types

Data-types

data Series Source #

Defines a series corresponding to a specific BBP-formula.

Constructors

MkSeries 

Fields

  • numerators :: [Integer]

    The constant numerators from which each term in the series is composed.

  • getDenominators :: Int -> [Integer]

    Generates the term-dependent denominators from which each term in the series is composed.

  • seriesScalingFactor :: Rational

    The ratio by which the sum to infinity of the series, must be scaled to result in Pi.

  • base :: Integer

    The geometric ratio, by which successive terms are scaled.