About

Metadata

  • Last updated , by rockbmb
  • License LicenseRef-PublicDomain
  • Categories Mathematics
  • Maintained by: James Cook <mokus ΑT deepbondi dot net>, Alexandre Rodrigues Baldé <alexandrer_b ΑT outlook dot com>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.6.1
  2. 8.4.3
  3. 8.2.2
  4. 8.0.2

Readme

Continued Fractions

Build Status

continued-fractions is a Haskell library for manipulating and evaluating continued fractions.

To use this library, the following information is relevant:

  • The CF datatype is defined thusly:
data CF a = CF a [a]
          | GCF a [(a,a)]

where the CF constructor is used to represent continued fractions whose numerators are all 1, and GCF represents generalized continued fractions. These constructors are not exported.

  • The cf :: a -> [a] -> CF a function is used to create continued fractions.

  • The gcf :: a -> [(a,a)] -> CF a function is used to create generalized continued fractions.