factory-0.2.1.1: Rational arithmetic in an irrational world.

Safe HaskellSafe-Inferred
LanguageHaskell98

Factory.Math.Implementations.Pi.Spigot.Spigot

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION

Synopsis

Types

Type-synonyms

Constants

decimal :: I Source

The constant base in which we want the resulting value of Pi to be expressed.

Functions

openI :: Series I -> DecimalDigits -> Integer Source

  • Initialises a spigot-table with the row of coefficients.
  • Ensures that the row has suffient terms to accurately generate the required number of digits.
  • Extracts only those digits which are guaranteed to be accurate.
  • CAVEAT: the result is returned as an Integer, i.e. without any decimal point.

Accessors

Constructors